<!doctype html>
<html lang="zh-CN" data-theme="light">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <meta name="generator" content="VuePress 2.0.0-rc.0" />
    <meta name="theme" content="VuePress Theme Hope 2.0.0-rc.0" />
    <style>
      html {
        background: var(--bg-color, #fff);
      }

      html[data-theme="dark"] {
        background: var(--bg-color, #1d1e1f);
      }

      body {
        background: var(--bg-color);
      }
    </style>
    <script>
      const userMode = localStorage.getItem("vuepress-theme-hope-scheme");
      const systemDarkMode =
        window.matchMedia &&
        window.matchMedia("(prefers-color-scheme: dark)").matches;

      if (userMode === "dark" || (userMode !== "light" && systemDarkMode)) {
        document.documentElement.setAttribute("data-theme", "dark");
      }
    </script>
    <link rel="alternate" hreflang="zh-tw" href="https://m.womi.ltd/flash.html"><meta property="og:url" content="https://m.womi.ltd/zh-CN/flash.html"><meta property="og:site_name" content="烟洛-迷途物语"><meta property="og:title" content="格机中心"><meta property="og:description" content="格机代码一览 这里是哪？ 这里是记录格机代码的地方 为什么要记录格机代码？ 这是一个在2022年就开始的项目，主要是为了更好地辨识格机代码，但是开始不久后便没有怎么维护了，在建立本站之初，连它的域名都被清除了，目前在GitHub.io上仍然可以访问此项目"><meta property="og:type" content="article"><meta property="og:locale" content="zh-CN"><meta property="og:locale:alternate" content="zh-TW"><meta property="article:author" content="尤苏奈尔·希洛尔"><script type="application/ld+json">{"@context":"https://schema.org","@type":"Article","headline":"格机中心","image":[""],"dateModified":null,"author":[{"@type":"Person","name":"尤苏奈尔·希洛尔","url":"https://www.womi.ltd","email":"Xilor@womi.ltd"}]}</script><title>格机中心 | 烟洛-迷途物语</title><meta name="description" content="格机代码一览 这里是哪？ 这里是记录格机代码的地方 为什么要记录格机代码？ 这是一个在2022年就开始的项目，主要是为了更好地辨识格机代码，但是开始不久后便没有怎么维护了，在建立本站之初，连它的域名都被清除了，目前在GitHub.io上仍然可以访问此项目">
    <link rel="preload" href="/assets/style-0Lq2KvZh.css" as="style"><link rel="stylesheet" href="/assets/style-0Lq2KvZh.css">
    <link rel="modulepreload" href="/assets/app-ubbyREUa.js"><link rel="modulepreload" href="/assets/flash.html-kfhKwOHd.js"><link rel="modulepreload" href="/assets/flash.html--xv7Egtf.js"><link rel="modulepreload" href="/assets/plugin-vue_export-helper-x3n3nnut.js">
    <link rel="prefetch" href="/assets/agreement.html-nyX5E6IJ.js" as="script"><link rel="prefetch" href="/assets/file.html-L_VVJF-B.js" as="script"><link rel="prefetch" href="/assets/flash.html-o-30t7KV.js" as="script"><link rel="prefetch" href="/assets/project.html-dj83Drz4.js" as="script"><link rel="prefetch" href="/assets/index.html-bnRZr-WZ.js" as="script"><link rel="prefetch" href="/assets/Website.html-Uc-paQ0Z.js" as="script"><link rel="prefetch" href="/assets/yosunair.html-ghdGyTcN.js" as="script"><link rel="prefetch" href="/assets/index.html-FhADwF09.js" as="script"><link rel="prefetch" href="/assets/index.html-QhgjdwVQ.js" as="script"><link rel="prefetch" href="/assets/index.html-4sluJJIw.js" as="script"><link rel="prefetch" href="/assets/index.html-78oigGJI.js" as="script"><link rel="prefetch" href="/assets/index.html-BnjzqIJK.js" as="script"><link rel="prefetch" href="/assets/index.html-bkQr5iof.js" as="script"><link rel="prefetch" href="/assets/agreement.html-1HusPLJt.js" as="script"><link rel="prefetch" href="/assets/file.html-kiJrRRJg.js" as="script"><link rel="prefetch" href="/assets/project.html-A7mgxgrh.js" as="script"><link rel="prefetch" href="/assets/index.html-7nRfpm7R.js" as="script"><link rel="prefetch" href="/assets/website.html-8y-n520x.js" as="script"><link rel="prefetch" href="/assets/yosunair.html-vAz5YKTy.js" as="script"><link rel="prefetch" href="/assets/index.html-hZH2-_No.js" as="script"><link rel="prefetch" href="/assets/index.html-49EoomiU.js" as="script"><link rel="prefetch" href="/assets/index.html-RjRl6G9q.js" as="script"><link rel="prefetch" href="/assets/index.html-gJ9nhwU5.js" as="script"><link rel="prefetch" href="/assets/index.html-PdETaBES.js" as="script"><link rel="prefetch" href="/assets/index.html-eMvKc3Za.js" as="script"><link rel="prefetch" href="/assets/index.html-AIpTbzAS.js" as="script"><link rel="prefetch" href="/assets/index.html-PcZrywKQ.js" as="script"><link rel="prefetch" href="/assets/index.html-5Al_s75T.js" as="script"><link rel="prefetch" href="/assets/index.html-_0LSMesZ.js" as="script"><link rel="prefetch" href="/assets/index.html-Bc3zH4IB.js" as="script"><link rel="prefetch" href="/assets/index.html-G4CLzWvJ.js" as="script"><link rel="prefetch" href="/assets/index.html-mqoxh8rc.js" as="script"><link rel="prefetch" href="/assets/index.html-z1LCtWBX.js" as="script"><link rel="prefetch" href="/assets/index.html-bUQAEehK.js" as="script"><link rel="prefetch" href="/assets/index.html-vn8F4ieS.js" as="script"><link rel="prefetch" href="/assets/index.html-19yoZ9wG.js" as="script"><link rel="prefetch" href="/assets/index.html-VBdYGD4Z.js" as="script"><link rel="prefetch" href="/assets/index.html-o0N-vyWG.js" as="script"><link rel="prefetch" href="/assets/index.html-4uXaIU0p.js" as="script"><link rel="prefetch" href="/assets/index.html-9yupUlfS.js" as="script"><link rel="prefetch" href="/assets/index.html-Y7grUe0x.js" as="script"><link rel="prefetch" href="/assets/index.html-m4PUbr4c.js" as="script"><link rel="prefetch" href="/assets/index.html-ZpDiax0A.js" as="script"><link rel="prefetch" href="/assets/index.html-KoHWGm-u.js" as="script"><link rel="prefetch" href="/assets/index.html-TMtUauHj.js" as="script"><link rel="prefetch" href="/assets/index.html-BvMG1Kbh.js" as="script"><link rel="prefetch" href="/assets/index.html-2cQFdtz4.js" as="script"><link rel="prefetch" href="/assets/index.html-AlMPCgZu.js" as="script"><link rel="prefetch" href="/assets/index.html-izFOUa6u.js" as="script"><link rel="prefetch" href="/assets/index.html-sR8muVNS.js" as="script"><link rel="prefetch" href="/assets/index.html-E-Uq0HPS.js" as="script"><link rel="prefetch" href="/assets/index.html-5foe0Kyt.js" as="script"><link rel="prefetch" href="/assets/index.html-WTdlHLan.js" as="script"><link rel="prefetch" href="/assets/index.html-VEJgO_ia.js" as="script"><link rel="prefetch" href="/assets/index.html-PzmQryYY.js" as="script"><link rel="prefetch" href="/assets/index.html-shLE8NoC.js" as="script"><link rel="prefetch" href="/assets/index.html-lLLhKaxW.js" as="script"><link rel="prefetch" href="/assets/index.html-RCxtrC2T.js" as="script"><link rel="prefetch" href="/assets/index.html-nxXjGS8Z.js" as="script"><link rel="prefetch" href="/assets/index.html-duS1KVoU.js" as="script"><link rel="prefetch" href="/assets/index.html--YPzg-El.js" as="script"><link rel="prefetch" href="/assets/index.html-Zc7TOO1H.js" as="script"><link rel="prefetch" href="/assets/index.html-d5zJ9L3Y.js" as="script"><link rel="prefetch" href="/assets/index.html-E8eCJ6XH.js" as="script"><link rel="prefetch" href="/assets/index.html-kYApzjER.js" as="script"><link rel="prefetch" href="/assets/index.html-gzy6R0p6.js" as="script"><link rel="prefetch" href="/assets/index.html-Bdqx_U7i.js" as="script"><link rel="prefetch" href="/assets/index.html-SGFBm8pH.js" as="script"><link rel="prefetch" href="/assets/index.html-PILi_vqw.js" as="script"><link rel="prefetch" href="/assets/index.html-rAMO478v.js" as="script"><link rel="prefetch" href="/assets/index.html-Jc8za6f3.js" as="script"><link rel="prefetch" href="/assets/index.html-LF75Yw5A.js" as="script"><link rel="prefetch" href="/assets/index.html-sLLaalTs.js" as="script"><link rel="prefetch" href="/assets/404.html-Nvm78rDJ.js" as="script"><link rel="prefetch" href="/assets/index.html-6sLvsQq2.js" as="script"><link rel="prefetch" href="/assets/index.html-YRW0GrQK.js" as="script"><link rel="prefetch" href="/assets/index.html-ZvHVEcXH.js" as="script"><link rel="prefetch" href="/assets/index.html-zAkKV3Ui.js" as="script"><link rel="prefetch" href="/assets/index.html-rmtX1ZDx.js" as="script"><link rel="prefetch" href="/assets/index.html-fPrmd-lV.js" as="script"><link rel="prefetch" href="/assets/index.html-KeTtgfyH.js" as="script"><link rel="prefetch" href="/assets/index.html-7opoFACP.js" as="script"><link rel="prefetch" href="/assets/index.html-s41YZCJU.js" as="script"><link rel="prefetch" href="/assets/index.html-wbHsK0Q_.js" as="script"><link rel="prefetch" href="/assets/index.html-iOvkAJTl.js" as="script"><link rel="prefetch" href="/assets/index.html-WkWJTMVc.js" as="script"><link rel="prefetch" href="/assets/index.html-vj0_lJ8b.js" as="script"><link rel="prefetch" href="/assets/index.html-E2S9UmwV.js" as="script"><link rel="prefetch" href="/assets/index.html-YoNUEc2C.js" as="script"><link rel="prefetch" href="/assets/index.html-7ltzv1Oz.js" as="script"><link rel="prefetch" href="/assets/index.html--wS5_DTd.js" as="script"><link rel="prefetch" href="/assets/index.html-pYjwHLaW.js" as="script"><link rel="prefetch" href="/assets/index.html-baIuv4ak.js" as="script"><link rel="prefetch" href="/assets/index.html-NP36mVJr.js" as="script"><link rel="prefetch" href="/assets/index.html-J6b0FBPB.js" as="script"><link rel="prefetch" href="/assets/index.html-Grsp22XA.js" as="script"><link rel="prefetch" href="/assets/index.html-7eT-XFN5.js" as="script"><link rel="prefetch" href="/assets/index.html-y6JlTbC0.js" as="script"><link rel="prefetch" href="/assets/index.html-vdDLHgyK.js" as="script"><link rel="prefetch" href="/assets/index.html-BmgLLUsI.js" as="script"><link rel="prefetch" href="/assets/index.html-qfCCDxId.js" as="script"><link rel="prefetch" href="/assets/index.html-VAQM8igh.js" as="script"><link rel="prefetch" href="/assets/index.html-o8PWmv54.js" as="script"><link rel="prefetch" href="/assets/index.html-5cLnGTcS.js" as="script"><link rel="prefetch" href="/assets/index.html-BgQT0QvL.js" as="script"><link rel="prefetch" href="/assets/index.html-gM287ukM.js" as="script"><link rel="prefetch" href="/assets/index.html-z-WaAEf6.js" as="script"><link rel="prefetch" href="/assets/index.html-kJuPsy_W.js" as="script"><link rel="prefetch" href="/assets/index.html-swm9uA-p.js" as="script"><link rel="prefetch" href="/assets/index.html-xtn2b8wh.js" as="script"><link rel="prefetch" href="/assets/agreement.html-CeYvCNkT.js" as="script"><link rel="prefetch" href="/assets/file.html-f99HuCHW.js" as="script"><link rel="prefetch" href="/assets/flash.html-6pqHeANs.js" as="script"><link rel="prefetch" href="/assets/project.html-AWK4MIrU.js" as="script"><link rel="prefetch" href="/assets/index.html-rPOAaqAj.js" as="script"><link rel="prefetch" href="/assets/Website.html-T7tVCvwh.js" as="script"><link rel="prefetch" href="/assets/yosunair.html-4eQaRn0A.js" as="script"><link rel="prefetch" href="/assets/index.html-HZBIa3gd.js" as="script"><link rel="prefetch" href="/assets/index.html-hTFRMeI4.js" as="script"><link rel="prefetch" href="/assets/index.html-FFrCdpni.js" as="script"><link rel="prefetch" href="/assets/index.html-57DTMDB-.js" as="script"><link rel="prefetch" href="/assets/index.html-1IFMMii7.js" as="script"><link rel="prefetch" href="/assets/index.html-7IfqDXYQ.js" as="script"><link rel="prefetch" href="/assets/agreement.html-Ow99I-DN.js" as="script"><link rel="prefetch" href="/assets/file.html-VUxnAKwK.js" as="script"><link rel="prefetch" href="/assets/project.html-W2MhB7NG.js" as="script"><link rel="prefetch" href="/assets/index.html-tD1Ke9HP.js" as="script"><link rel="prefetch" href="/assets/website.html-ft8f70_x.js" as="script"><link rel="prefetch" href="/assets/yosunair.html-kVCMYuzO.js" as="script"><link rel="prefetch" href="/assets/index.html-BJBsyxU6.js" as="script"><link rel="prefetch" href="/assets/index.html-zM2ZRsNi.js" as="script"><link rel="prefetch" href="/assets/index.html-bxs_epHD.js" as="script"><link rel="prefetch" href="/assets/index.html-oCKFSNcI.js" as="script"><link rel="prefetch" href="/assets/index.html-bfNschWK.js" as="script"><link rel="prefetch" href="/assets/index.html-kgmR35cP.js" as="script"><link rel="prefetch" href="/assets/index.html-FsmAYR9v.js" as="script"><link rel="prefetch" href="/assets/index.html-X9UMUogg.js" as="script"><link rel="prefetch" href="/assets/index.html-H4XT_300.js" as="script"><link rel="prefetch" href="/assets/index.html-G7pTV034.js" as="script"><link rel="prefetch" href="/assets/index.html-_1f1nQOd.js" as="script"><link rel="prefetch" href="/assets/index.html-uEE5ntcG.js" as="script"><link rel="prefetch" href="/assets/index.html-Y42bMdA0.js" as="script"><link rel="prefetch" href="/assets/index.html-1yulJr3L.js" as="script"><link rel="prefetch" href="/assets/index.html-LYTbzCvS.js" as="script"><link rel="prefetch" href="/assets/index.html-umH1OXe-.js" as="script"><link rel="prefetch" href="/assets/index.html-rvi5IL-X.js" as="script"><link rel="prefetch" href="/assets/index.html-UX6UhdDx.js" as="script"><link rel="prefetch" href="/assets/index.html-Ffk-KCY6.js" as="script"><link rel="prefetch" href="/assets/index.html-AKFrMRf-.js" as="script"><link rel="prefetch" href="/assets/index.html-rn-eIOJx.js" as="script"><link rel="prefetch" href="/assets/index.html-FHvBSmyR.js" as="script"><link rel="prefetch" href="/assets/index.html-HbICaO-y.js" as="script"><link rel="prefetch" href="/assets/index.html-9ylV8d5a.js" as="script"><link rel="prefetch" href="/assets/index.html-xeB9k6K5.js" as="script"><link rel="prefetch" href="/assets/index.html-iNtRIe51.js" as="script"><link rel="prefetch" href="/assets/index.html-ox0Lgdau.js" as="script"><link rel="prefetch" href="/assets/index.html-UW2tji_5.js" as="script"><link rel="prefetch" href="/assets/index.html-ascVLuvk.js" as="script"><link rel="prefetch" href="/assets/index.html-89TE4hbf.js" as="script"><link rel="prefetch" href="/assets/index.html-0HDPkrCi.js" as="script"><link rel="prefetch" href="/assets/index.html-meQRq5Dv.js" as="script"><link rel="prefetch" href="/assets/index.html-STMxS30X.js" as="script"><link rel="prefetch" href="/assets/index.html-FwVaQ5Zt.js" as="script"><link rel="prefetch" href="/assets/index.html-9Gm21HNJ.js" as="script"><link rel="prefetch" href="/assets/index.html-zUByBi7w.js" as="script"><link rel="prefetch" href="/assets/index.html-lOQ4oScw.js" as="script"><link rel="prefetch" href="/assets/index.html-Zn_-CYqR.js" as="script"><link rel="prefetch" href="/assets/index.html-k06S8yA6.js" as="script"><link rel="prefetch" href="/assets/index.html-opdSqG4Y.js" as="script"><link rel="prefetch" href="/assets/index.html-4Fie6txy.js" as="script"><link rel="prefetch" href="/assets/index.html-cwACajMb.js" as="script"><link rel="prefetch" href="/assets/index.html-t7kMT1v9.js" as="script"><link rel="prefetch" href="/assets/index.html-0_xK7CTA.js" as="script"><link rel="prefetch" href="/assets/index.html-sTud8_34.js" as="script"><link rel="prefetch" href="/assets/index.html-c4QBdyJz.js" as="script"><link rel="prefetch" href="/assets/index.html-4l142emJ.js" as="script"><link rel="prefetch" href="/assets/index.html-4Z2L-Z5U.js" as="script"><link rel="prefetch" href="/assets/index.html-L3GcdjU2.js" as="script"><link rel="prefetch" href="/assets/index.html-cQAFBkVq.js" as="script"><link rel="prefetch" href="/assets/index.html-vDlnHt8h.js" as="script"><link rel="prefetch" href="/assets/index.html-oiXt7bmi.js" as="script"><link rel="prefetch" href="/assets/index.html-xSm4_jxK.js" as="script"><link rel="prefetch" href="/assets/index.html-Bu2JcAJ2.js" as="script"><link rel="prefetch" href="/assets/404.html-IKg3qGm9.js" as="script"><link rel="prefetch" href="/assets/index.html-1NbjTaEV.js" as="script"><link rel="prefetch" href="/assets/index.html-Tjnlvjoj.js" as="script"><link rel="prefetch" href="/assets/index.html-hw3n1kVR.js" as="script"><link rel="prefetch" href="/assets/index.html-ha9JZI6I.js" as="script"><link rel="prefetch" href="/assets/index.html-N1tDHrvZ.js" as="script"><link rel="prefetch" href="/assets/index.html-nbE3k2FX.js" as="script"><link rel="prefetch" href="/assets/index.html-MfNyGuei.js" as="script"><link rel="prefetch" href="/assets/index.html-Uc_ZhPUJ.js" as="script"><link rel="prefetch" href="/assets/index.html-pYCmaO_l.js" as="script"><link rel="prefetch" href="/assets/index.html-v2S2j3Nv.js" as="script"><link rel="prefetch" href="/assets/index.html-REjWYCIr.js" as="script"><link rel="prefetch" href="/assets/index.html-RkG8_Qdq.js" as="script"><link rel="prefetch" href="/assets/index.html-QPEZtN8L.js" as="script"><link rel="prefetch" href="/assets/index.html-7t59gksi.js" as="script"><link rel="prefetch" href="/assets/index.html-w-hXByim.js" as="script"><link rel="prefetch" href="/assets/index.html-Z-_8YpWk.js" as="script"><link rel="prefetch" href="/assets/index.html-oXsfK0Vr.js" as="script"><link rel="prefetch" href="/assets/index.html-iyKZz_dt.js" as="script"><link rel="prefetch" href="/assets/index.html-7DEA9cqe.js" as="script"><link rel="prefetch" href="/assets/index.html-xNe1nP8e.js" as="script"><link rel="prefetch" href="/assets/index.html-DVpc6M2a.js" as="script"><link rel="prefetch" href="/assets/index.html-vpjb8HyY.js" as="script"><link rel="prefetch" href="/assets/index.html-qL2cFGUM.js" as="script"><link rel="prefetch" href="/assets/index.html-eoQ47rVq.js" as="script"><link rel="prefetch" href="/assets/index.html-W16D4Mtt.js" as="script"><link rel="prefetch" href="/assets/index.html-Ms1_F4LK.js" as="script"><link rel="prefetch" href="/assets/index.html-4LhXKNd2.js" as="script"><link rel="prefetch" href="/assets/index.html-QsfTUcd3.js" as="script"><link rel="prefetch" href="/assets/index.html-7NRBekwN.js" as="script"><link rel="prefetch" href="/assets/index.html-i9HPbkb8.js" as="script"><link rel="prefetch" href="/assets/index.html-n1esDUR3.js" as="script"><link rel="prefetch" href="/assets/index.html-CMaaANaH.js" as="script"><link rel="prefetch" href="/assets/index.html-_KsLNIV-.js" as="script"><link rel="prefetch" href="/assets/index.html-G48jucCW.js" as="script"><link rel="prefetch" href="/assets/index.html-5j3GbT9f.js" as="script"><link rel="prefetch" href="/assets/index.html-T8mbXWga.js" as="script"><link rel="prefetch" href="/assets/waline-meta-w40geAFS.js" as="script"><link rel="prefetch" href="/assets/component-5xXUhRai.js" as="script"><link rel="prefetch" href="/assets/auto-HRhNfH8L.js" as="script"><link rel="prefetch" href="/assets/index-rBp-GJb9.js" as="script"><link rel="prefetch" href="/assets/flowchart-loQwkp6e.js" as="script"><link rel="prefetch" href="/assets/mermaid.core-O40PHwbc.js" as="script"><link rel="prefetch" href="/assets/VuePlayground-yoInWidf.js" as="script"><link rel="prefetch" href="/assets/photoswipe.esm-mC0Qcr12.js" as="script"><link rel="prefetch" href="/assets/pageview-Ty6hg-bc.js" as="script"><link rel="prefetch" href="/assets/SearchResult-tXZ6AvuL.js" as="script">
  </head>
  <body>
    <div id="app"><!--[--><!--[--><!--[--><span tabindex="-1"></span><a href="#main-content" class="vp-skip-link sr-only">跳至主要內容</a><!--]--><div class="theme-container has-toc"><!--[--><header id="navbar" class="vp-navbar"><div class="vp-navbar-start"><button type="button" class="vp-toggle-sidebar-button" title="Toggle Sidebar"><span class="icon"></span></button><!--[--><!----><!--]--><!--[--><a class="vp-link vp-brand vp-brand" href="/zh-CN/"><img class="vp-nav-logo" src="/logo.svg" alt="烟洛-迷途物语"><!----><span class="vp-site-name hide-in-pad">烟洛-迷途物语</span></a><!--]--><!--[--><!----><!--]--></div><div class="vp-navbar-center"><!--[--><!----><!--]--><!--[--><nav class="vp-nav-links"><div class="nav-item hide-in-mobile"><a aria-label="「烟洛-迷途物语」" class="vp-link nav-link nav-link" href="/zh-CN/"><span class="font-icon icon iconfont icon-home" style=""></span>「烟洛-迷途物语」<!----></a></div><div class="nav-item hide-in-mobile"><a aria-label="「韶光文档」" class="vp-link nav-link nav-link" href="/skyx/"><span class="font-icon icon iconfont icon-creative" style=""></span>「韶光文档」<!----></a></div></nav><!--]--><!--[--><!----><!--]--></div><div class="vp-navbar-end"><!--[--><!----><!--]--><!--[--><div class="nav-item"><div class="dropdown-wrapper i18n-dropdown"><button type="button" class="dropdown-title" aria-label="选择语言"><!--[--><svg xmlns="http://www.w3.org/2000/svg" class="icon i18n-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="i18n icon" style="width:1rem;height:1rem;vertical-align:middle;"><path d="M379.392 460.8 494.08 575.488l-42.496 102.4L307.2 532.48 138.24 701.44l-71.68-72.704L234.496 460.8l-45.056-45.056c-27.136-27.136-51.2-66.56-66.56-108.544h112.64c7.68 14.336 16.896 27.136 26.112 35.84l45.568 46.08 45.056-45.056C382.976 312.32 409.6 247.808 409.6 204.8H0V102.4h256V0h102.4v102.4h256v102.4H512c0 70.144-37.888 161.28-87.04 210.944L378.88 460.8zM576 870.4 512 1024H409.6l256-614.4H768l256 614.4H921.6l-64-153.6H576zM618.496 768h196.608L716.8 532.48 618.496 768z"></path></svg><!--]--><span class="arrow"></span><ul class="nav-dropdown"><li class="dropdown-item"><a aria-label="繁體中文" class="vp-link nav-link nav-link" href="/flash.html"><!---->繁體中文<!----></a></li><li class="dropdown-item"><a aria-label="简体中文" class="vp-link nav-link active nav-link active" href="/zh-CN/flash.html"><!---->简体中文<!----></a></li></ul></button></div></div><div class="nav-item vp-repo"><a class="vp-repo-link" href="https://github.com/Yosunair/Yosunair.github.io" target="_blank" rel="noopener noreferrer" aria-label="GitHub"><svg xmlns="http://www.w3.org/2000/svg" class="icon github-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="github icon" style="width:1.25rem;height:1.25rem;vertical-align:middle;"><path d="M511.957 21.333C241.024 21.333 21.333 240.981 21.333 512c0 216.832 140.544 400.725 335.574 465.664 24.49 4.395 32.256-10.07 32.256-23.083 0-11.69.256-44.245 0-85.205-136.448 29.61-164.736-64.64-164.736-64.64-22.315-56.704-54.4-71.765-54.4-71.765-44.587-30.464 3.285-29.824 3.285-29.824 49.195 3.413 75.179 50.517 75.179 50.517 43.776 75.008 114.816 53.333 142.762 40.79 4.523-31.66 17.152-53.377 31.19-65.537-108.971-12.458-223.488-54.485-223.488-242.602 0-53.547 19.114-97.323 50.517-131.67-5.035-12.33-21.93-62.293 4.779-129.834 0 0 41.258-13.184 134.912 50.346a469.803 469.803 0 0 1 122.88-16.554c41.642.213 83.626 5.632 122.88 16.554 93.653-63.488 134.784-50.346 134.784-50.346 26.752 67.541 9.898 117.504 4.864 129.834 31.402 34.347 50.474 78.123 50.474 131.67 0 188.586-114.73 230.016-224.042 242.09 17.578 15.232 33.578 44.672 33.578 90.454v135.85c0 13.142 7.936 27.606 32.854 22.87C862.25 912.597 1002.667 728.747 1002.667 512c0-271.019-219.648-490.667-490.71-490.667z"></path></svg></a></div><div class="nav-item hide-in-mobile"><button type="button" class="outlook-button" tabindex="-1" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" class="icon outlook-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="outlook icon"><path d="M224 800c0 9.6 3.2 44.8 6.4 54.4 6.4 48-48 76.8-48 76.8s80 41.6 147.2 0 134.4-134.4 38.4-195.2c-22.4-12.8-41.6-19.2-57.6-19.2C259.2 716.8 227.2 761.6 224 800zM560 675.2l-32 51.2c-51.2 51.2-83.2 32-83.2 32 25.6 67.2 0 112-12.8 128 25.6 6.4 51.2 9.6 80 9.6 54.4 0 102.4-9.6 150.4-32l0 0c3.2 0 3.2-3.2 3.2-3.2 22.4-16 12.8-35.2 6.4-44.8-9.6-12.8-12.8-25.6-12.8-41.6 0-54.4 60.8-99.2 137.6-99.2 6.4 0 12.8 0 22.4 0 12.8 0 38.4 9.6 48-25.6 0-3.2 0-3.2 3.2-6.4 0-3.2 3.2-6.4 3.2-6.4 6.4-16 6.4-16 6.4-19.2 9.6-35.2 16-73.6 16-115.2 0-105.6-41.6-198.4-108.8-268.8C704 396.8 560 675.2 560 675.2zM224 419.2c0-28.8 22.4-51.2 51.2-51.2 28.8 0 51.2 22.4 51.2 51.2 0 28.8-22.4 51.2-51.2 51.2C246.4 470.4 224 448 224 419.2zM320 284.8c0-22.4 19.2-41.6 41.6-41.6 22.4 0 41.6 19.2 41.6 41.6 0 22.4-19.2 41.6-41.6 41.6C339.2 326.4 320 307.2 320 284.8zM457.6 208c0-12.8 12.8-25.6 25.6-25.6 12.8 0 25.6 12.8 25.6 25.6 0 12.8-12.8 25.6-25.6 25.6C470.4 233.6 457.6 220.8 457.6 208zM128 505.6C128 592 153.6 672 201.6 736c28.8-60.8 112-60.8 124.8-60.8-16-51.2 16-99.2 16-99.2l316.8-422.4c-48-19.2-99.2-32-150.4-32C297.6 118.4 128 291.2 128 505.6zM764.8 86.4c-22.4 19.2-390.4 518.4-390.4 518.4-22.4 28.8-12.8 76.8 22.4 99.2l9.6 6.4c35.2 22.4 80 12.8 99.2-25.6 0 0 6.4-12.8 9.6-19.2 54.4-105.6 275.2-524.8 288-553.6 6.4-19.2-3.2-32-19.2-32C777.6 76.8 771.2 80 764.8 86.4z"></path></svg><div class="outlook-dropdown"><!----></div></button></div><!--[--><button type="button" class="search-pro-button" role="search" aria-label="搜索"><svg xmlns="http://www.w3.org/2000/svg" class="icon search-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="search icon"><path d="M192 480a256 256 0 1 1 512 0 256 256 0 0 1-512 0m631.776 362.496-143.2-143.168A318.464 318.464 0 0 0 768 480c0-176.736-143.264-320-320-320S128 303.264 128 480s143.264 320 320 320a318.016 318.016 0 0 0 184.16-58.592l146.336 146.368c12.512 12.48 32.768 12.48 45.28 0 12.48-12.512 12.48-32.768 0-45.28"></path></svg><div class="search-pro-placeholder">搜索</div><div class="search-pro-key-hints"><kbd class="search-pro-key">Ctrl</kbd><kbd class="search-pro-key">K</kbd></div></button><!--]--><!--]--><!--[--><!----><!--]--><button type="button" class="vp-toggle-navbar-button" aria-label="Toggle Navbar" aria-expanded="false" aria-controls="nav-screen"><span><span class="vp-top"></span><span class="vp-middle"></span><span class="vp-bottom"></span></span></button></div></header><!----><!--]--><!----><div class="toggle-sidebar-wrapper"><span class="arrow start"></span></div><aside id="sidebar" class="vp-sidebar"><!--[--><!----><!--]--><ul class="vp-sidebar-links"><li><!--[--><a aria-label="「煙洛-迷途物語」" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/"><span class="font-icon icon iconfont icon-home" style=""></span>「煙洛-迷途物語」<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><section class="vp-sidebar-group"><p class="vp-sidebar-heading clickable active"><span class="font-icon icon iconfont icon-discover" style=""></span><a href="https://www.womi.ltd" rel="noopener noreferrer" target="_blank" aria-label="「尤苏奈尔基本外发(黑塔)」" class="nav-link vp-sidebar-title"><!---->「尤苏奈尔基本外发(黑塔)」<!----><!----></a><!----></p><ul class="vp-sidebar-links"><li><!--[--><a aria-label="「烟洛-迷途物语」" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/zh-CN/"><span class="font-icon icon iconfont icon-home" style=""></span>「烟洛-迷途物语」<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="「尤苏奈尔基本计划」" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/zh-CN/yosunair.html"><span class="font-icon icon iconfont icon-discover" style=""></span>「尤苏奈尔基本计划」<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><section class="vp-sidebar-group"><button class="vp-sidebar-heading clickable" type="button"><span class="font-icon icon iconfont icon-discover" style=""></span><span class="vp-sidebar-title">「尤苏奈尔基本外发计划」</span><span class="vp-arrow end"></span></button><!----></section></li><li><section class="vp-sidebar-group"><button class="vp-sidebar-heading clickable" type="button"><span class="font-icon icon iconfont icon-discover" style=""></span><span class="vp-sidebar-title">「尤基：安全」</span><span class="vp-arrow end"></span></button><!----></section></li><li><section class="vp-sidebar-group"><button class="vp-sidebar-heading clickable" type="button"><span class="font-icon icon iconfont icon-discover" style=""></span><span class="vp-sidebar-title">「尤基：模块」</span><span class="vp-arrow end"></span></button><!----></section></li><li><section class="vp-sidebar-group"><button class="vp-sidebar-heading clickable" type="button"><span class="font-icon icon iconfont icon-discover" style=""></span><span class="vp-sidebar-title">「迷途之旅计划」</span><span class="vp-arrow end"></span></button><!----></section></li><li><section class="vp-sidebar-group"><button class="vp-sidebar-heading clickable" type="button"><span class="font-icon icon iconfont icon-discover" style=""></span><span class="vp-sidebar-title">「韶光计划」</span><span class="vp-arrow end"></span></button><!----></section></li><li><section class="vp-sidebar-group"><button class="vp-sidebar-heading clickable" type="button"><span class="font-icon icon iconfont icon-discover" style=""></span><span class="vp-sidebar-title">「樱花莫洛计划」</span><span class="vp-arrow end"></span></button><!----></section></li><li><!--[--><a aria-label="下载中心" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/zh-CN/file.html"><span class="font-icon icon iconfont icon-discover" style=""></span>下载中心<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="用户相关协议" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/zh-CN/agreement.html"><span class="font-icon icon iconfont icon-discover" style=""></span>用户相关协议<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="产品列表" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/zh-CN/project.html"><span class="font-icon icon iconfont icon-discover" style=""></span>产品列表<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="网站列表" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/zh-CN/website.html"><span class="font-icon icon iconfont icon-discover" style=""></span>网站列表<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="格机中心" class="vp-link nav-link active vp-sidebar-link vp-sidebar-page active nav-link active vp-sidebar-link vp-sidebar-page active" href="/zh-CN/flash.html"><span class="font-icon icon iconfont icon-discover" style=""></span>格机中心<!----></a><ul class="vp-sidebar-sub-headers"><li class="vp-sidebar-sub-header"><a aria-label="这里是哪？" class="vp-link nav-link vp-sidebar-link vp-heading nav-link vp-sidebar-link vp-heading" href="/zh-CN/flash.html#这里是哪"><!---->这里是哪？<!----></a><ul class="vp-sidebar-sub-headers"></ul></li><li class="vp-sidebar-sub-header"><a aria-label="为什么要记录格机代码？" class="vp-link nav-link vp-sidebar-link vp-heading nav-link vp-sidebar-link vp-heading" href="/zh-CN/flash.html#为什么要记录格机代码"><!---->为什么要记录格机代码？<!----></a><ul class="vp-sidebar-sub-headers"></ul></li><li class="vp-sidebar-sub-header"><a aria-label="相关知识" class="vp-link nav-link vp-sidebar-link vp-heading nav-link vp-sidebar-link vp-heading" href="/zh-CN/flash.html#相关知识"><!---->相关知识<!----></a><ul class="vp-sidebar-sub-headers"></ul></li><li class="vp-sidebar-sub-header"><a aria-label="代码一览" class="vp-link nav-link vp-sidebar-link vp-heading nav-link vp-sidebar-link vp-heading" href="/zh-CN/flash.html#代码一览"><!---->代码一览<!----></a><ul class="vp-sidebar-sub-headers"><li class="vp-sidebar-sub-header"><a aria-label="1、rm" class="vp-link nav-link vp-sidebar-link vp-heading nav-link vp-sidebar-link vp-heading" href="/zh-CN/flash.html#_1、rm"><!---->1、rm<!----></a><ul class="vp-sidebar-sub-headers"></ul></li><li class="vp-sidebar-sub-header"><a aria-label="2、dd" class="vp-link nav-link vp-sidebar-link vp-heading nav-link vp-sidebar-link vp-heading" href="/zh-CN/flash.html#_2、dd"><!---->2、dd<!----></a><ul class="vp-sidebar-sub-headers"></ul></li><li class="vp-sidebar-sub-header"><a aria-label="3、mv" class="vp-link nav-link vp-sidebar-link vp-heading nav-link vp-sidebar-link vp-heading" href="/zh-CN/flash.html#_3、mv"><!---->3、mv<!----></a><ul class="vp-sidebar-sub-headers"></ul></li><li class="vp-sidebar-sub-header"><a aria-label="4、cp" class="vp-link nav-link vp-sidebar-link vp-heading nav-link vp-sidebar-link vp-heading" href="/zh-CN/flash.html#_4、cp"><!---->4、cp<!----></a><ul class="vp-sidebar-sub-headers"></ul></li><li class="vp-sidebar-sub-header"><a aria-label="5、重定向操作符" class="vp-link nav-link vp-sidebar-link vp-heading nav-link vp-sidebar-link vp-heading" href="/zh-CN/flash.html#_5、重定向操作符"><!---->5、重定向操作符<!----></a><ul class="vp-sidebar-sub-headers"></ul></li><li class="vp-sidebar-sub-header"><a aria-label="6、adb(Android Debug Bridge)" class="vp-link nav-link vp-sidebar-link vp-heading nav-link vp-sidebar-link vp-heading" href="/zh-CN/flash.html#_6、adb-android-debug-bridge"><!---->6、adb(Android Debug Bridge)<!----></a><ul class="vp-sidebar-sub-headers"></ul></li><li class="vp-sidebar-sub-header"><a aria-label="7、fastboot" class="vp-link nav-link vp-sidebar-link vp-heading nav-link vp-sidebar-link vp-heading" href="/zh-CN/flash.html#_7、fastboot"><!---->7、fastboot<!----></a><ul class="vp-sidebar-sub-headers"></ul></li></ul></li><li class="vp-sidebar-sub-header"><a aria-label="完整格机代码" class="vp-link nav-link vp-sidebar-link vp-heading nav-link vp-sidebar-link vp-heading" href="/zh-CN/flash.html#完整格机代码"><!---->完整格机代码<!----></a><ul class="vp-sidebar-sub-headers"></ul></li><li class="vp-sidebar-sub-header"><a aria-label="总结" class="vp-link nav-link vp-sidebar-link vp-heading nav-link vp-sidebar-link vp-heading" href="/zh-CN/flash.html#总结"><!---->总结<!----></a><ul class="vp-sidebar-sub-headers"></ul></li></ul><!--]--></li></ul></section></li></ul><!--[--><!----><!--]--></aside><!--[--><main id="main-content" class="vp-page"><!--[--><!--[--><!----><!--]--><!----><nav class="vp-breadcrumb disable"></nav><div class="vp-page-title"><h1><span class="font-icon icon iconfont icon-discover" style=""></span>格机中心</h1><div class="page-info"><span class="page-author-info" aria-label="作者🖊" data-balloon-pos="down"><svg xmlns="http://www.w3.org/2000/svg" class="icon author-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="author icon"><path d="M649.6 633.6c86.4-48 147.2-144 147.2-249.6 0-160-128-288-288-288s-288 128-288 288c0 108.8 57.6 201.6 147.2 249.6-121.6 48-214.4 153.6-240 288-3.2 9.6 0 19.2 6.4 25.6 3.2 9.6 12.8 12.8 22.4 12.8h704c9.6 0 19.2-3.2 25.6-12.8 6.4-6.4 9.6-16 6.4-25.6-25.6-134.4-121.6-240-243.2-288z"></path></svg><span><a class="page-author-item" href="https://www.womi.ltd" target="_blank" rel="noopener noreferrer">尤苏奈尔·希洛尔</a></span><span property="author" content="尤苏奈尔·希洛尔"></span></span><!----><!----><span class="page-pageview-info" aria-label="访问量🔢" data-balloon-pos="down"><svg xmlns="http://www.w3.org/2000/svg" class="icon eye-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="eye icon"><path d="M992 512.096c0-5.76-.992-10.592-1.28-11.136-.192-2.88-1.152-8.064-2.08-10.816-.256-.672-.544-1.376-.832-2.08-.48-1.568-1.024-3.104-1.6-4.32C897.664 290.112 707.104 160 512 160c-195.072 0-385.632 130.016-473.76 322.592-1.056 2.112-1.792 4.096-2.272 5.856a55.512 55.512 0 00-.64 1.6c-1.76 5.088-1.792 8.64-1.632 7.744-.832 3.744-1.568 11.168-1.568 11.168-.224 2.272-.224 4.032.032 6.304 0 0 .736 6.464 1.088 7.808.128 1.824.576 4.512 1.12 6.976h-.032c.448 2.08 1.12 4.096 1.984 6.08.48 1.536.992 2.976 1.472 4.032C126.432 733.856 316.992 864 512 864c195.136 0 385.696-130.048 473.216-321.696 1.376-2.496 2.24-4.832 2.848-6.912.256-.608.48-1.184.672-1.728 1.536-4.48 1.856-8.32 1.728-8.32l-.032.032c.608-3.104 1.568-7.744 1.568-13.28zM512 672c-88.224 0-160-71.776-160-160s71.776-160 160-160 160 71.776 160 160-71.776 160-160 160z"></path></svg><span id="ArtalkPV" class="waline-pageview-count" data-path="/zh-CN/flash.html">...</span></span><span class="page-reading-time-info" aria-label="阅读时间⌛" data-balloon-pos="down"><svg xmlns="http://www.w3.org/2000/svg" class="icon timer-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="timer icon"><path d="M799.387 122.15c4.402-2.978 7.38-7.897 7.38-13.463v-1.165c0-8.933-7.38-16.312-16.312-16.312H256.33c-8.933 0-16.311 7.38-16.311 16.312v1.165c0 5.825 2.977 10.874 7.637 13.592 4.143 194.44 97.22 354.963 220.201 392.763-122.204 37.542-214.893 196.511-220.2 389.397-4.661 5.049-7.638 11.651-7.638 19.03v5.825h566.49v-5.825c0-7.379-2.849-13.981-7.509-18.9-5.049-193.016-97.867-351.985-220.2-389.527 123.24-37.67 216.446-198.453 220.588-392.892zM531.16 450.445v352.632c117.674 1.553 211.787 40.778 211.787 88.676H304.097c0-48.286 95.149-87.382 213.728-88.676V450.445c-93.077-3.107-167.901-81.297-167.901-177.093 0-8.803 6.99-15.793 15.793-15.793 8.803 0 15.794 6.99 15.794 15.793 0 80.261 63.69 145.635 142.01 145.635s142.011-65.374 142.011-145.635c0-8.803 6.99-15.793 15.794-15.793s15.793 6.99 15.793 15.793c0 95.019-73.789 172.82-165.96 177.093z"></path></svg><span>大约 24 分钟</span><meta property="timeRequired" content="PT24M"></span><span class="page-category-info" aria-label="分类🌈" data-balloon-pos="down"><svg xmlns="http://www.w3.org/2000/svg" class="icon category-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="category icon"><path d="M148.41 106.992h282.176c22.263 0 40.31 18.048 40.31 40.31V429.48c0 22.263-18.047 40.31-40.31 40.31H148.41c-22.263 0-40.311-18.047-40.311-40.31V147.302c0-22.263 18.048-40.31 40.311-40.31zM147.556 553.478H429.73c22.263 0 40.311 18.048 40.311 40.31v282.176c0 22.263-18.048 40.312-40.31 40.312H147.555c-22.263 0-40.311-18.049-40.311-40.312V593.79c0-22.263 18.048-40.311 40.31-40.311zM593.927 106.992h282.176c22.263 0 40.31 18.048 40.31 40.31V429.48c0 22.263-18.047 40.31-40.31 40.31H593.927c-22.263 0-40.311-18.047-40.311-40.31V147.302c0-22.263 18.048-40.31 40.31-40.31zM730.22 920.502H623.926c-40.925 0-74.22-33.388-74.22-74.425V623.992c0-41.038 33.387-74.424 74.425-74.424h222.085c41.038 0 74.424 33.226 74.424 74.067v114.233c0 10.244-8.304 18.548-18.547 18.548s-18.548-8.304-18.548-18.548V623.635c0-20.388-16.746-36.974-37.33-36.974H624.13c-20.585 0-37.331 16.747-37.331 37.33v222.086c0 20.585 16.654 37.331 37.126 37.331H730.22c10.243 0 18.547 8.304 18.547 18.547 0 10.244-8.304 18.547-18.547 18.547z"></path></svg><!--[--><span class="page-category-item category7 clickable" role="navigation">Flash</span><!--]--><meta property="articleSection" content="Flash"></span><!----></div><hr></div><div class="toc-place-holder"><aside id="toc"><!--[--><!----><!--]--><div class="toc-header">此页内容<button type="button" class="print-button" title="打印"><svg xmlns="http://www.w3.org/2000/svg" class="icon print-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="print icon"><path d="M819.2 364.8h-44.8V128c0-17.067-14.933-32-32-32H281.6c-17.067 0-32 14.933-32 32v236.8h-44.8C145.067 364.8 96 413.867 96 473.6v192c0 59.733 49.067 108.8 108.8 108.8h44.8V896c0 17.067 14.933 32 32 32h460.8c17.067 0 32-14.933 32-32V774.4h44.8c59.733 0 108.8-49.067 108.8-108.8v-192c0-59.733-49.067-108.8-108.8-108.8zM313.6 160h396.8v204.8H313.6V160zm396.8 704H313.6V620.8h396.8V864zM864 665.6c0 25.6-19.2 44.8-44.8 44.8h-44.8V588.8c0-17.067-14.933-32-32-32H281.6c-17.067 0-32 14.933-32 32v121.6h-44.8c-25.6 0-44.8-19.2-44.8-44.8v-192c0-25.6 19.2-44.8 44.8-44.8h614.4c25.6 0 44.8 19.2 44.8 44.8v192z"></path></svg></button></div><div class="toc-wrapper"><ul class="toc-list"><!--[--><li class="toc-item"><a class="vp-link toc-link level3 toc-link level3" href="#这里是哪">这里是哪？</a></li><!----><!--]--><!--[--><li class="toc-item"><a class="vp-link toc-link level3 toc-link level3" href="#为什么要记录格机代码">为什么要记录格机代码？</a></li><!----><!--]--><!--[--><li class="toc-item"><a class="vp-link toc-link level3 toc-link level3" href="#相关知识">相关知识</a></li><!----><!--]--><!--[--><li class="toc-item"><a class="vp-link toc-link level2 toc-link level2" href="#代码一览">代码一览</a></li><li><ul class="toc-list"><!--[--><li class="toc-item"><a class="vp-link toc-link level3 toc-link level3" href="#_1、rm">1、rm</a></li><!----><!--]--><!--[--><li class="toc-item"><a class="vp-link toc-link level3 toc-link level3" href="#_2、dd">2、dd</a></li><!----><!--]--><!--[--><li class="toc-item"><a class="vp-link toc-link level3 toc-link level3" href="#_3、mv">3、mv</a></li><!----><!--]--><!--[--><li class="toc-item"><a class="vp-link toc-link level3 toc-link level3" href="#_4、cp">4、cp</a></li><!----><!--]--><!--[--><li class="toc-item"><a class="vp-link toc-link level3 toc-link level3" href="#_5、重定向操作符">5、重定向操作符</a></li><!----><!--]--><!--[--><li class="toc-item"><a class="vp-link toc-link level3 toc-link level3" href="#_6、adb-android-debug-bridge">6、adb(Android Debug Bridge)</a></li><!----><!--]--><!--[--><li class="toc-item"><a class="vp-link toc-link level3 toc-link level3" href="#_7、fastboot">7、fastboot</a></li><!----><!--]--></ul></li><!--]--><!--[--><li class="toc-item"><a class="vp-link toc-link level2 toc-link level2" href="#完整格机代码">完整格机代码</a></li><!----><!--]--><!--[--><li class="toc-item"><a class="vp-link toc-link level2 toc-link level2" href="#总结">总结</a></li><!----><!--]--></ul><div class="toc-marker" style="top:-1.7rem;"></div></div><!--[--><!----><!--]--></aside></div><!--[--><!----><!--]--><div class="theme-hope-content"><div style="text-align:center;"><p>格机代码一览</p></div><h3 id="这里是哪" tabindex="-1"><a class="header-anchor" href="#这里是哪" aria-hidden="true">#</a> 这里是哪？</h3><p>这里是记录格机代码的地方</p><h3 id="为什么要记录格机代码" tabindex="-1"><a class="header-anchor" href="#为什么要记录格机代码" aria-hidden="true">#</a> 为什么要记录格机代码？</h3><p>这是一个在2022年就开始的项目，主要是为了更好地辨识格机代码，但是开始不久后便没有怎么维护了，<s>在建立本站之初，连它的域名都被清除了，目前在<a href="https://yosunair.github.io/Yosunair-Flash-Home/" target="_blank" rel="noopener noreferrer">GitHub.io<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a>上仍然可以访问此项目</s></p><h5 id="这是已经非常令人气愤的事情-我已经在很多格机脚本上看到了我的示例指令-有些甚至都是二传连指令都复制错了-而我的github-repo连一个star都没有-为此我重新开放了原来的flash-sukax-eu-org域名-并且更新了相关信息-希望一些人能够好自为之" tabindex="-1"><a class="header-anchor" href="#这是已经非常令人气愤的事情-我已经在很多格机脚本上看到了我的示例指令-有些甚至都是二传连指令都复制错了-而我的github-repo连一个star都没有-为此我重新开放了原来的flash-sukax-eu-org域名-并且更新了相关信息-希望一些人能够好自为之" aria-hidden="true">#</a> 这是已经非常令人气愤的事情，我已经在很多格机脚本上看到了我的示例指令，有些甚至都是二传连指令都复制错了，而我的<a href="https://github.com/Yosunair/Yosunair-Flash-Home" target="_blank" rel="noopener noreferrer">GitHub Repo<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a>连一个Star都没有，为此我重新开放了原来的<a href="http://flash.sukax.eu.org" target="_blank" rel="noopener noreferrer">flash.sukax.eu.org<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a>域名，并且更新了相关信息，希望一些人能够好自为之</h5><h4 id="无论你是拿来写格机脚本还是拿来做科普-我都希望你能够留下我的名字-最起码能让我心里好受一点" tabindex="-1"><a class="header-anchor" href="#无论你是拿来写格机脚本还是拿来做科普-我都希望你能够留下我的名字-最起码能让我心里好受一点" aria-hidden="true">#</a> 无论你是拿来写格机脚本还是拿来做科普，我都希望你能够留下我的名字，最起码能让我心里好受一点</h4><h3 id="相关知识" tabindex="-1"><a class="header-anchor" href="#相关知识" aria-hidden="true">#</a> 相关知识</h3><h4 id="什么是格机" tabindex="-1"><a class="header-anchor" href="#什么是格机" aria-hidden="true">#</a> 什么是格机？</h4><p>格机指的是对 Android(Linux) 设备的系统进行不同程度的破坏，较轻的丢失手机数据，严重的则会导致设备损坏，需要进行较为底层的刷机(例如9008)，有些甚至需要拆机短接或者直接更换主板</p><h4 id="为什么会有格机" tabindex="-1"><a class="header-anchor" href="#为什么会有格机" aria-hidden="true">#</a> 为什么会有格机？</h4><p>Magisk/KernelSU(虽然KernelSU的出现较晚，但是KernelSU基本兼容Magisk模块，这里便提上了)的模块功能不免会使某些牟利者在其中做出一些行为，通过在模块的安装/启动脚本里面添加格机代码来破坏使用者的设备(更有甚者会在模块里加入联网下载格机的功能，导致了可能一开始模块使用正常，后续牟利者收网，所有使用者一起被格机)，这是牟利者就会提供修复服务来赚取服务费，达到其目的，使得使用者数据、钱财两失</p><p>还有一种情况则是使用了被添加了格机代码的软件/作弊器导致的格机，相关原理都差不多</p><h4 id="格机从何而来" tabindex="-1"><a class="header-anchor" href="#格机从何而来" aria-hidden="true">#</a> 格机从何而来？</h4><p>众所周知，安卓系统(包括套壳安卓系统的鸿蒙系统)是基于Linux的系统，所以有着不是很完整的Shell指令集(<a href="https://landley.net/toybox/" target="_blank" rel="noopener noreferrer">Toybox<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a>(实际上自带的Toybox也不是完整的))，实际上即便有了Magisk的<a href="https://github.com/topjohnwu/ndk-busybox" target="_blank" rel="noopener noreferrer">Busybox<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a>，指令集依然不太完整(Magisk的Busybox只是保证用到的指令集在不同设备上是相同的)，但是这足以实现很多格机操作，比如说著名的<code>rm -rf /*</code>在安卓设备上都是可以使用的(本人亲身实验过(写代码<code>rm -rf $变量/</code>忘定义变量导致的悲剧))，所以，牟利者可以在安卓设备上进行“花式”的格机行为</p><h4 id="如何预防格机" tabindex="-1"><a class="header-anchor" href="#如何预防格机" aria-hidden="true">#</a> 如何预防格机？</h4><p>你可以使用内核模块屏蔽/循环检测阻止的方法来防止执行格机代码，这里推荐使用内核模块 <a href="https://github.com/BuerApp/RootGuard" target="_blank" rel="noopener noreferrer">RootGuard<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a>(需要内核版本5.10+)，本人有幸多次测试此模块帮助开发者改进使得它可以在天玑8100 CPU的设备上正常运行，并且为此项目提供了格机代码示例<br> 但是，有一点必须知道，只有不去盲目执行/安装才是预防格机的最好方法</p><h2 id="代码一览" tabindex="-1"><a class="header-anchor" href="#代码一览" aria-hidden="true">#</a> 代码一览</h2><h6 id="文章会先解析指令-后放出完整的格机代码" tabindex="-1"><a class="header-anchor" href="#文章会先解析指令-后放出完整的格机代码" aria-hidden="true">#</a> 文章会先解析指令，后放出完整的格机代码</h6><h6 id="以下代码都需要root权限执行" tabindex="-1"><a class="header-anchor" href="#以下代码都需要root权限执行" aria-hidden="true">#</a> 以下代码都需要root权限执行</h6><div class="hint-container info"><p class="hint-container-title">如何检测是否使用root权限执行的内容？</p><div class="language-bash line-numbers-mode" data-ext="sh"><pre class="language-bash"><code><span class="token function">id</span> <span class="token parameter variable">-u</span> <span class="token comment">#获取用户id，root为0</span>
<span class="token function">id</span> <span class="token parameter variable">-g</span> <span class="token comment">#获取用户组id，root为0</span>
<span class="token function">whoami</span> <span class="token comment">#获取用户名称，root为root</span>
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></div><h6 id="部分知识可见-谷歌官方文档" tabindex="-1"><a class="header-anchor" href="#部分知识可见-谷歌官方文档" aria-hidden="true">#</a> 部分知识可见 <a href="https://source.android.google.cn/docs/core/ota?hl=zh-cn" target="_blank" rel="noopener noreferrer">谷歌官方文档<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a></h6><h3 id="_1、rm" tabindex="-1"><a class="header-anchor" href="#_1、rm" aria-hidden="true">#</a> 1、rm</h3><p>“rm”是Linux的删除指令，用于删除文件/目录，也是常见的格机代码，它通过删除设备上的文件来达到格机效果，通常来说，较新机型一般系统分区都是只读，所以只会删除/data目录及/mnt/vendor/persist目录(persist是存储例如指纹校准信息的地方，删除会使指纹失效，需要重新校准)，所以只需要格式化data就可以正常启动手机，但是在较旧机型或者手动修改系统分区使之可读写的设备上，它可能导致更严重地破坏系统(会删除系统分区文件)，届时需要重新线刷完整包来正常启动手机</p><details class="hint-container details"><summary>代码示例</summary><div class="language-bash line-numbers-mode" data-ext="sh"><pre class="language-bash"><code>
<span class="token comment"># 作者：酷安@泠熙子</span>
<span class="token comment">#  使用请注明出处</span>

<span class="token function">rm</span> <span class="token parameter variable">-rf</span> / <span class="token comment">#删除根目录下所有文件(删除系统分区文件需要支持读写，内核/内存分区无效)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /data <span class="token comment">#删除所有用户数据(软件及数据、音视频图片、文档等)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /storage/emulated/0 <span class="token comment">#删除用户0的所有数据(软件存储在此的数据、音视频图片、文档等)(用户id为0的是主用户(指的是多用户中的设备用户，不是系统用户组/用户)，其他则是多开用户等)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /storage/sdcard <span class="token comment">#删除用户的所有数据(较旧安卓版本的存储目录，因为不支持多用户，所以只有一个目录)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /storage <span class="token comment">#删除所有用户及内容提供者的数据</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /cache <span class="token comment">#删除缓存分区内文件(无任何破坏性)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /mnt <span class="token comment">#删除所有设备的文件(包括所有用户的存储数据，persist分区，OTG设备及TF卡等)</span>

<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /system <span class="token comment">#删除system分区内的所有文件(需要支持读写)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /vendor <span class="token comment">#删除vendor分区内的所有文件(需要支持读写)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /product <span class="token comment">#删除product分区内的所有文件(需要支持读写)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /odm <span class="token comment">#删除odm分区内的所有文件(需要支持读写)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /system_ext <span class="token comment">#删除system_ext分区内的所有文件(需要支持读写)</span>

<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /sys <span class="token comment">#删除内核映射分区内文件(此操作无效)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /proc <span class="token comment">#删除内存映射分区内文件(此操作无效)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /dev <span class="token comment">#删除tmpfs分区内文件(此操作理论无效)</span>

<span class="token comment"># 作者：酷安@泠熙子</span>
<span class="token comment">#  使用请注明出处</span>

</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h3 id="_2、dd" tabindex="-1"><a class="header-anchor" href="#_2、dd" aria-hidden="true">#</a> 2、dd</h3><p>“dd”是一个创建/修改文件的指令，用源文件的内容填充指定文件，是最常见的格机代码，格机通常通过/dev/zero(空文件)来填充设备分区，达到破坏系统分区，使设备无法正常启动(如果涉及到了引导等分区，则会直接黑砖)<br> 值得一提的是，开机状态下如果内核有限制，那么dd也是无效的(例如联发科旧型号CPU锁定boot分区，导致Magisk无法开机替换boot更新)，但是在BootLoader或者FastBoot模式下，这些分区通常是可以正常清除的，某些格机代码也会潜藏在刷机脚本内</p><details class="hint-container details"><summary>代码示例</summary><div class="language-bash line-numbers-mode" data-ext="sh"><pre class="language-bash"><code>
<span class="token comment"># 作者：酷安@泠熙子</span>
<span class="token comment">#  使用请注明出处</span>

<span class="token function">dd</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>/dev/zero <span class="token assign-left variable">of</span><span class="token operator">=</span>路径 <span class="token assign-left variable">bs</span><span class="token operator">=</span>1b <span class="token assign-left variable">count</span><span class="token operator">=</span><span class="token number">10</span> <span class="token comment">#bs指一个输入块的大小，count指输入块的个数，此代码可以把指定文件修改成10b大小</span>

<span class="token comment"># 为了节约时间，下面的代码采用循环展示</span>

<span class="token keyword">for</span> <span class="token for-or-select variable">i</span> <span class="token keyword">in</span> <span class="token variable"><span class="token variable">$(</span><span class="token function">ls</span> /dev/block/sd*<span class="token variable">)</span></span> <span class="token punctuation">;</span> <span class="token keyword">do</span>
  <span class="token function">dd</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>/dev/zero <span class="token assign-left variable">of</span><span class="token operator">=</span><span class="token variable">${i}</span> <span class="token assign-left variable">bs</span><span class="token operator">=</span>1b <span class="token assign-left variable">count</span><span class="token operator">=</span><span class="token number">10</span>
<span class="token keyword">done</span>
<span class="token comment">#此代码通过获取/dev/block目录下所有以sd开头的设备文件(例如 sd[a-c])来修改文件(ls 带“*”的路径会直接输出完整路径)</span>

<span class="token keyword">for</span> <span class="token for-or-select variable">i</span> <span class="token keyword">in</span> <span class="token variable"><span class="token variable">$(</span><span class="token function">ls</span> /dev/block/dm*<span class="token variable">)</span></span> <span class="token punctuation">;</span> <span class="token keyword">do</span>
  <span class="token function">dd</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>/dev/zero <span class="token assign-left variable">of</span><span class="token operator">=</span><span class="token variable">${i}</span> <span class="token assign-left variable">bs</span><span class="token operator">=</span>1b <span class="token assign-left variable">count</span><span class="token operator">=</span><span class="token number">10</span>
<span class="token keyword">done</span>
<span class="token comment">#此代码通过获取/dev/block目录下所有以dm开头的设备文件(例如 dm-[0-3])来修改文件(ls 带“*”的路径会直接输出完整路径)</span>

<span class="token keyword">for</span> <span class="token for-or-select variable">i</span> <span class="token keyword">in</span> <span class="token variable"><span class="token variable">$(</span><span class="token function">ls</span> /dev/block/ram*<span class="token variable">)</span></span> <span class="token punctuation">;</span> <span class="token keyword">do</span>
  <span class="token function">dd</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>/dev/zero <span class="token assign-left variable">of</span><span class="token operator">=</span><span class="token variable">${i}</span> <span class="token assign-left variable">bs</span><span class="token operator">=</span>1b <span class="token assign-left variable">count</span><span class="token operator">=</span><span class="token number">10</span>
<span class="token keyword">done</span>
<span class="token comment">#此代码通过获取/dev/block目录下所有以ram开头的设备文件(例如 ram[0-3])来修改文件(ls 带“*”的路径会直接输出完整路径)</span>

<span class="token keyword">for</span> <span class="token for-or-select variable">i</span> <span class="token keyword">in</span> <span class="token variable"><span class="token variable">$(</span><span class="token function">ls</span> /dev/block/loop*<span class="token variable">)</span></span> <span class="token punctuation">;</span> <span class="token keyword">do</span>
  <span class="token function">dd</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>/dev/zero <span class="token assign-left variable">of</span><span class="token operator">=</span><span class="token variable">${i}</span> <span class="token assign-left variable">bs</span><span class="token operator">=</span>1b <span class="token assign-left variable">count</span><span class="token operator">=</span><span class="token number">10</span>
<span class="token keyword">done</span>
<span class="token comment">#此代码通过获取/dev/block目录下所有以loop开头的设备文件(例如 loop[0-3])来修改文件(ls 带“*”的路径会直接输出完整路径)</span>

<span class="token keyword">for</span> <span class="token for-or-select variable">i</span> <span class="token keyword">in</span> <span class="token variable"><span class="token variable">$(</span><span class="token function">ls</span> /dev/block/by-name/*<span class="token variable">)</span></span> <span class="token punctuation">;</span> <span class="token keyword">do</span>
  <span class="token function">dd</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>/dev/zero <span class="token assign-left variable">of</span><span class="token operator">=</span><span class="token variable">${i}</span> <span class="token assign-left variable">bs</span><span class="token operator">=</span>1b <span class="token assign-left variable">count</span><span class="token operator">=</span><span class="token number">10</span>
<span class="token keyword">done</span>
<span class="token comment">#此代码通过获取/dev/block/by-name目录下的所有分区文件来修改文件(ls 带“*”的路径会直接输出完整路径)</span>

<span class="token keyword">for</span> <span class="token for-or-select variable">i</span> <span class="token keyword">in</span> <span class="token variable"><span class="token variable">$(</span><span class="token function">ls</span> /dev/block/bootdevice/by-name/*<span class="token variable">)</span></span> <span class="token punctuation">;</span> <span class="token keyword">do</span>
  <span class="token function">dd</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>/dev/zero <span class="token assign-left variable">of</span><span class="token operator">=</span><span class="token variable">${i}</span> <span class="token assign-left variable">bs</span><span class="token operator">=</span>1b <span class="token assign-left variable">count</span><span class="token operator">=</span><span class="token number">10</span>
<span class="token keyword">done</span>
<span class="token comment">#此代码通过获取/dev/block/bootdevice/by-name目录下的所有分区文件来修改文件(ls 带“*”的路径会直接输出完整路径)</span>

<span class="token keyword">for</span> <span class="token for-or-select variable">i</span> <span class="token keyword">in</span> <span class="token variable"><span class="token variable">$(</span><span class="token function">ls</span> /dev/block/mapper/*<span class="token variable">)</span></span> <span class="token punctuation">;</span> <span class="token keyword">do</span>
  <span class="token punctuation">[</span><span class="token punctuation">[</span> <span class="token parameter variable">-d</span> <span class="token string">&quot;<span class="token variable">${i}</span>&quot;</span> <span class="token punctuation">]</span><span class="token punctuation">]</span> <span class="token operator">||</span> <span class="token function">dd</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>/dev/zero <span class="token assign-left variable">of</span><span class="token operator">=</span><span class="token variable">${i}</span> <span class="token assign-left variable">bs</span><span class="token operator">=</span>1b <span class="token assign-left variable">count</span><span class="token operator">=</span><span class="token number">10</span>
<span class="token keyword">done</span>
<span class="token comment">#此代码通过获取/dev/block/mapper目录下的所有分区文件来修改文件(ls 带“*”的路径会直接输出完整路径)</span>

<span class="token comment"># 对于分区路径的解释：</span>
<span class="token comment">#  大部分设备的分区路径是 /dev/block/by-name ，部分旧设备是 /dev/block/bootdevice/by-name ， /dev/block/mapper 是super分区(动态分区的系统分区合区)内的子分区文件(有些不属于super分区，而是属于其子分区)</span>

<span class="token function">dd</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>/dev/zero <span class="token assign-left variable">of</span><span class="token operator">=</span><span class="token variable"><span class="token variable">$(</span>magisk <span class="token parameter variable">--path</span><span class="token variable">)</span></span>/.magisk/block/system_root <span class="token assign-left variable">bs</span><span class="token operator">=</span>1b <span class="token assign-left variable">count</span><span class="token operator">=</span><span class="token number">10</span> <span class="token comment">#通过获取Magisk缓存路径映射的分区路径来修改文件(在新版本Magisk已被移除)</span>

<span class="token comment"># 作者：酷安@泠熙子</span>
<span class="token comment">#  使用请注明出处</span>

</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h3 id="_3、mv" tabindex="-1"><a class="header-anchor" href="#_3、mv" aria-hidden="true">#</a> 3、mv</h3><p>“mv”是Linux移动文件/文件夹的指令，可以移动/替换路径，替换的功能便运用到了格机上面</p><details class="hint-container details"><summary>代码示例</summary><div class="language-bash line-numbers-mode" data-ext="sh"><pre class="language-bash"><code>
<span class="token comment"># 作者：酷安@泠熙子</span>
<span class="token comment">#  使用请注明出处</span>

<span class="token function">mv</span> /dev/null /dev/block/bootdevice/by-name/boot <span class="token comment">#替换单槽boot为空</span>
<span class="token function">mv</span> /dev/null /dev/block/bootdevice/by-name/boot_a <span class="token comment">#替换a槽boot为空</span>
<span class="token function">mv</span> /dev/null /dev/block/bootdevice/by-name/boot_b <span class="token comment">#替换b槽boot为空</span>
<span class="token function">mv</span> /dev/null /dev/block/by-name/boot <span class="token comment">#替换单槽boot为空</span>
<span class="token function">mv</span> /dev/null /dev/block/by-name/boot_a <span class="token comment">#替换a槽boot为空</span>
<span class="token function">mv</span> /dev/null /dev/block/by-name/boot_b <span class="token comment">#替换b槽boot为空</span>

<span class="token comment"># 对于分区路径的解释：</span>
<span class="token comment">#  大部分设备的分区路径是 /dev/block/by-name ，部分旧设备是 /dev/block/bootdevice/by-name</span>

<span class="token comment"># 作者：酷安@泠熙子</span>
<span class="token comment">#  使用请注明出处</span>

</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h3 id="_4、cp" tabindex="-1"><a class="header-anchor" href="#_4、cp" aria-hidden="true">#</a> 4、cp</h3><p>“cp”是Linux复制文件/文件夹的指令，可以复制/覆盖路径，覆盖的功能便运用到了格机上面</p><details class="hint-container details"><summary>代码示例</summary><div class="language-bash line-numbers-mode" data-ext="sh"><pre class="language-bash"><code>
<span class="token comment"># 作者：酷安@泠熙子</span>
<span class="token comment">#  使用请注明出处</span>

<span class="token function">cp</span> <span class="token parameter variable">-rf</span> /dev/null /dev/block/bootdevice/by-name/boot <span class="token comment">#替换单槽boot为空</span>
<span class="token function">cp</span> <span class="token parameter variable">-rf</span> /dev/null /dev/block/bootdevice/by-name/boot_a <span class="token comment">#替换a槽boot为空</span>
<span class="token function">cp</span> <span class="token parameter variable">-rf</span> /dev/null /dev/block/bootdevice/by-name/boot_b <span class="token comment">#替换b槽boot为空</span>
<span class="token function">cp</span> <span class="token parameter variable">-rf</span> /dev/null /dev/block/by-name/boot <span class="token comment">#替换单槽boot为空</span>
<span class="token function">cp</span> <span class="token parameter variable">-rf</span> /dev/null /dev/block/by-name/boot_a <span class="token comment">#替换a槽boot为空</span>
<span class="token function">cp</span> <span class="token parameter variable">-rf</span> /dev/null /dev/block/by-name/boot_b <span class="token comment">#替换b槽boot为空</span>

<span class="token comment"># 对于分区路径的解释：</span>
<span class="token comment">#  大部分设备的分区路径是 /dev/block/by-name ，部分旧设备是 /dev/block/bootdevice/by-name</span>

<span class="token comment"># 作者：酷安@泠熙子</span>
<span class="token comment">#  使用请注明出处</span>

</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h3 id="_5、重定向操作符" tabindex="-1"><a class="header-anchor" href="#_5、重定向操作符" aria-hidden="true">#</a> 5、重定向操作符</h3><p>重定向操作符(“&gt;&gt;”、“&gt;”)可以让绝大部分指令，例如echo、printf、cat、chmod、chattr等指令都能够进行格机操作(通过将指令的输出内容重定向到指定路径来达到创建/修改文件的效果)</p><details class="hint-container details"><summary>代码示例</summary><div class="language-bash line-numbers-mode" data-ext="sh"><pre class="language-bash"><code>
<span class="token comment"># 作者：酷安@泠熙子</span>
<span class="token comment">#  使用请注明出处</span>

<span class="token builtin class-name">echo</span> <span class="token string">&#39;&#39;</span> <span class="token operator">&gt;</span> /dev/block/by-name/cdt <span class="token comment">#修改高通设备参数分区为空</span>
<span class="token function">ls</span> / <span class="token operator">&gt;</span> /dev/block/by-name/cdt <span class="token comment">#修改高通设备参数分区为根目录各个分区名称</span>
<span class="token function">cat</span> /dev/null <span class="token operator">&gt;</span> /dev/block/by-name/cdt <span class="token comment">#修改高通设备参数分区为空</span>
<span class="token function">chmod</span> 000 <span class="token parameter variable">-R</span> /data/adb <span class="token operator">&gt;</span> /dev/block/by-name/cdt <span class="token comment">#修改高通设备参数分区为空</span>
chattr +i /data/adb <span class="token operator">&gt;</span> /dev/block/by-name/cdt <span class="token comment">#修改高通设备参数分区为空</span>

<span class="token comment"># 作者：酷安@泠熙子</span>
<span class="token comment">#  使用请注明出处</span>

</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h3 id="_6、adb-android-debug-bridge" tabindex="-1"><a class="header-anchor" href="#_6、adb-android-debug-bridge" aria-hidden="true">#</a> 6、adb(Android Debug Bridge)</h3><p>“adb”是可在Windows、Linux等系统上调试安卓设备的工具(也可以安卓设备调试其他安卓设备，或者安卓设备调试自身)，通过<code>adb root</code>即可让安卓设备内adbd进程提升为root权限(默认为shell)，或者使用<code>adb shell su -c &quot;指令&quot;</code>也可以直接使用root权限执行内容(注意，前提是你给安卓设备上的“Shell”应用授权了root权限)，所以adb可以用于从电脑端进行格机</p><details class="hint-container details"><summary>代码示例</summary><div class="language-powershell line-numbers-mode" data-ext="powershell"><pre class="language-powershell"><code>
<span class="token comment"># 作者：酷安@泠熙子</span>
<span class="token comment">#  使用请注明出处</span>

adb shell su <span class="token operator">-</span>c <span class="token string">&quot;rm -rf /&quot;</span> <span class="token comment">#由于是调用安卓设备上的shell环境，执行的内容与其他指令相同</span>

<span class="token comment"># 作者：酷安@泠熙子</span>
<span class="token comment">#  使用请注明出处</span>

</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h3 id="_7、fastboot" tabindex="-1"><a class="header-anchor" href="#_7、fastboot" aria-hidden="true">#</a> 7、fastboot</h3><p>“fastboot”是可以在设备的BootLoader/FastBoot模式进行刷写的工具，一般用于刷机，但是其清除/格式化功能也可以进行格机</p><details class="hint-container details"><summary>代码示例</summary><div class="language-powershell line-numbers-mode" data-ext="powershell"><pre class="language-powershell"><code>
<span class="token comment"># 作者：酷安@泠熙子</span>
<span class="token comment">#  使用请注明出处</span>

fastboot <span class="token operator">-</span>w <span class="token comment">#清除并格式化存储及缓存分区</span>

fastboot <span class="token function">erase</span> userdata <span class="token comment">#清除存储分区</span>
fastboot <span class="token function">erase</span> boot_ab <span class="token comment">#清除内核双槽分区</span>
fastboot <span class="token function">erase</span> boot <span class="token comment">#清除内核单槽分区</span>
fastboot <span class="token function">erase</span> init_boot_ab <span class="token comment">#清除内核双槽分区(Android 13+)</span>
fastboot <span class="token function">erase</span> init_boot <span class="token comment">#清除内核单槽分区(Android 13+)</span>
fastboot <span class="token function">erase</span> vendor_boot_ab <span class="token comment">#清除定制化内核双槽分区(gki1.0+)</span>
fastboot <span class="token function">erase</span> vendor_boot <span class="token comment">#清除定制化内核单槽分区(gki1.0+)</span>
fastboot <span class="token function">erase</span> vbmeta_ab <span class="token comment">#清除分区校验双槽分区</span>
fastboot <span class="token function">erase</span> vbmeta <span class="token comment">#清除分区校验单槽分区</span>
fastboot <span class="token function">erase</span> logo_ab <span class="token comment">#清除联发科等设备的双槽开机第一屏</span>
fastboot <span class="token function">erase</span> logo <span class="token comment">#清除联发科等设备的单槽开机第一屏</span>
fastboot <span class="token function">erase</span> splash_ab <span class="token comment">#清除高通等设备的双槽开机第一屏</span>
fastboot <span class="token function">erase</span> splash <span class="token comment">#清除高通等设备的单槽开机第一屏</span>
fastboot <span class="token function">erase</span> super <span class="token comment">#清除动态分区的super分区(super只有一个，里面分区为双分区为ab分区，单分区为only a或vab分区)</span>
fastboot <span class="token function">erase</span> system_ab <span class="token comment">#清除系统双槽分区(非动态分区或FastBoot模式内)</span>
fastboot <span class="token function">erase</span> system <span class="token comment">#清除系统单槽分区(非动态分区或FastBoot模式内)</span>
fastboot <span class="token function">erase</span> lk_ab <span class="token comment">#清除联发科引导双槽分区</span>
fastboot <span class="token function">erase</span> lk <span class="token comment">#清除联发科引导单槽分区</span>
fastboot <span class="token function">erase</span> uefi_ab <span class="token comment">#清除高通引导双槽分区</span>
fastboot <span class="token function">erase</span> uefi <span class="token comment">#清除高通引导单槽分区</span>
fastboot <span class="token function">erase</span> xbl_ab <span class="token comment">#清除高通引导双槽分区</span>
fastboot <span class="token function">erase</span> xbl <span class="token comment">#清除高通引导单槽分区</span>
fastboot <span class="token function">erase</span> abl_ab <span class="token comment">#清除高通引导双槽分区</span>
fastboot <span class="token function">erase</span> abl <span class="token comment">#清除高通引导单槽分区</span>
fastboot <span class="token function">erase</span> cdt <span class="token comment">#清除高通设备参数分区</span>
fastboot <span class="token function">erase</span> modem_ab <span class="token comment">#清除高通基带双槽分区</span>
fastboot <span class="token function">erase</span> modem <span class="token comment">#清除高通基带单槽分区</span>
fastboot <span class="token function">erase</span> preloader_raw_ab <span class="token comment">#清除联发科引导双槽分区</span>
fastboot <span class="token function">erase</span> preloader_raw <span class="token comment">#清除联发科引导单槽分区</span>
fastboot <span class="token function">erase</span> preloader_ab <span class="token comment">#清除联发科引导双槽分区</span>
fastboot <span class="token function">erase</span> preloader <span class="token comment">#清除联发科引导单槽分区</span>
fastboot <span class="token function">erase</span> cust <span class="token comment">#清除自定义分区(例如MIUI存储推广应用，但是不代表可以随便清除)</span>
fastboot <span class="token function">erase</span> persist <span class="token comment">#清除校准数据分区</span>
fastboot <span class="token function">erase</span> metadata <span class="token comment">#清除data加密信息</span>
fastboot <span class="token function">erase</span> recovery_ab <span class="token comment">#清除恢复双槽分区</span>
fastboot <span class="token function">erase</span> recovery <span class="token comment">#清除恢复单槽分区</span>
fastboot <span class="token function">erase</span> nvcfg <span class="token comment">#清除联发科nvcfg分区(貌似是设备cfg校验信息)</span>
fastboot <span class="token function">erase</span> nvdata <span class="token comment">#清除联发科nvdata分区(基带信息)</span>
fastboot <span class="token function">erase</span> nvram <span class="token comment">#清除联发科nvram分区(imei信息)</span>

fastboot format userdata <span class="token comment">#格式化存储分区</span>
fastboot format boot_ab <span class="token comment">#格式化内核双槽分区</span>
fastboot format boot <span class="token comment">#格式化内核单槽分区</span>
fastboot format init_boot_ab <span class="token comment">#格式化内核双槽分区(Android 13+)</span>
fastboot format init_boot <span class="token comment">#格式化内核单槽分区(Android 13+)</span>
fastboot format vendor_boot_ab <span class="token comment">#格式化定制化内核双槽分区(gki1.0+)</span>
fastboot format vendor_boot <span class="token comment">#格式化定制化内核单槽分区(gki1.0+)</span>
fastboot format vbmeta_ab <span class="token comment">#格式化分区校验双槽分区</span>
fastboot format vbmeta <span class="token comment">#格式化分区校验单槽分区</span>
fastboot format logo_ab <span class="token comment">#格式化联发科等设备的双槽开机第一屏</span>
fastboot format logo <span class="token comment">#格式化联发科等设备的单槽开机第一屏</span>
fastboot format splash_ab <span class="token comment">#格式化高通等设备的双槽开机第一屏</span>
fastboot format splash <span class="token comment">#格式化高通等设备的单槽开机第一屏</span>
fastboot format super <span class="token comment">#格式化动态分区的super分区(super只有一个，里面分区为双分区为ab分区，单分区为only a或vab分区)</span>
fastboot format system_ab <span class="token comment">#格式化系统双槽分区(非动态分区或FastBoot模式内)</span>
fastboot format system <span class="token comment">#格式化系统单槽分区(非动态分区或FastBoot模式内)</span>
fastboot format lk_ab <span class="token comment">#格式化联发科引导双槽分区</span>
fastboot format lk <span class="token comment">#格式化联发科引导单槽分区</span>
fastboot format uefi_ab <span class="token comment">#格式化高通引导双槽分区</span>
fastboot format uefi <span class="token comment">#格式化高通引导单槽分区</span>
fastboot format xbl_ab <span class="token comment">#格式化高通引导双槽分区</span>
fastboot format xbl <span class="token comment">#格式化高通引导单槽分区</span>
fastboot format abl_ab <span class="token comment">#格式化高通引导双槽分区</span>
fastboot format abl <span class="token comment">#格式化高通引导单槽分区</span>
fastboot format cdt <span class="token comment">#格式化高通设备参数分区</span>
fastboot format modem_ab <span class="token comment">#格式化高通基带双槽分区</span>
fastboot format modem <span class="token comment">#格式化高通基带单槽分区</span>
fastboot format preloader_raw_ab <span class="token comment">#格式化联发科引导双槽分区</span>
fastboot format preloader_raw <span class="token comment">#格式化联发科引导单槽分区</span>
fastboot format preloader_ab <span class="token comment">#格式化联发科引导双槽分区</span>
fastboot format preloader <span class="token comment">#格式化联发科引导单槽分区</span>
fastboot format cust <span class="token comment">#格式化自定义分区(例如MIUI存储推广应用，但是不代表可以随便格式化)</span>
fastboot format persist <span class="token comment">#格式化校准数据分区</span>
fastboot format metadata <span class="token comment">#格式化data加密信息</span>
fastboot format recovery_ab <span class="token comment">#格式化恢复双槽分区</span>
fastboot format recovery <span class="token comment">#格式化恢复单槽分区</span>
fastboot format nvcfg <span class="token comment">#格式化联发科nvcfg分区(貌似是设备cfg校验信息)</span>
fastboot format nvdata <span class="token comment">#格式化联发科nvdata分区(基带信息)</span>
fastboot format nvram <span class="token comment">#格式化联发科nvram分区(imei信息)</span>

fastboot delete-logical-partition system <span class="token comment">#删除super内system分区</span>
fastboot delete-logical-partition vendor <span class="token comment">#删除super内vendor分区</span>
fastboot delete-logical-partition product <span class="token comment">#删除super内product分区</span>
fastboot delete-logical-partition odm <span class="token comment">#删除super内odm分区</span>
fastboot delete-logical-partition system_ext <span class="token comment">#删除super内system_ext分区</span>

<span class="token comment"># 作者：酷安@泠熙子</span>
<span class="token comment">#  使用请注明出处</span>

</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h2 id="完整格机代码" tabindex="-1"><a class="header-anchor" href="#完整格机代码" aria-hidden="true">#</a> 完整格机代码</h2><details class="hint-container details"><summary>Android Shell</summary><div class="language-bash line-numbers-mode" data-ext="sh"><pre class="language-bash"><code>
<span class="token comment"># 作者：酷安@泠熙子</span>
<span class="token comment">#  使用请注明出处</span>

<span class="token comment"># 1、rm</span>

<span class="token function">rm</span> <span class="token parameter variable">-rf</span> / <span class="token comment">#删除根目录下所有文件(删除系统分区文件需要支持读写，内核/内存分区无效)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /data <span class="token comment">#删除所有用户数据(软件及数据、音视频图片、文档等)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /storage/emulated/0 <span class="token comment">#删除用户0的所有数据(软件存储在此的数据、音视频图片、文档等)(用户id为0的是主用户(指的是多用户中的设备用户，不是系统用户组/用户)，其他则是多开用户等)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /storage/sdcard <span class="token comment">#删除用户的所有数据(较旧安卓版本的存储目录，因为不支持多用户，所以只有一个目录)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /storage <span class="token comment">#删除所有用户及内容提供者的数据</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /cache <span class="token comment">#删除缓存分区内文件(无任何破坏性)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /mnt <span class="token comment">#删除所有设备的文件(包括所有用户的存储数据，persist分区，OTG设备及TF卡等)</span>

<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /system <span class="token comment">#删除system分区内的所有文件(需要支持读写)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /vendor <span class="token comment">#删除vendor分区内的所有文件(需要支持读写)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /product <span class="token comment">#删除product分区内的所有文件(需要支持读写)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /odm <span class="token comment">#删除odm分区内的所有文件(需要支持读写)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /system_ext <span class="token comment">#删除system_ext分区内的所有文件(需要支持读写)</span>

<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /sys <span class="token comment">#删除内核映射分区内文件(此操作无效)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /proc <span class="token comment">#删除内存映射分区内文件(此操作无效)</span>
<span class="token function">rm</span> <span class="token parameter variable">-rf</span> /dev <span class="token comment">#删除tmpfs分区内文件(此操作理论无效)</span>


<span class="token comment"># 2、dd</span>

<span class="token function">dd</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>/dev/zero <span class="token assign-left variable">of</span><span class="token operator">=</span>路径 <span class="token assign-left variable">bs</span><span class="token operator">=</span>1b <span class="token assign-left variable">count</span><span class="token operator">=</span><span class="token number">10</span> <span class="token comment">#bs指一个输入块的大小，count指输入块的个数，此代码可以把指定文件修改成10b大小</span>

<span class="token comment"># 为了节约时间，下面的代码采用循环展示</span>

<span class="token keyword">for</span> <span class="token for-or-select variable">i</span> <span class="token keyword">in</span> <span class="token variable"><span class="token variable">$(</span><span class="token function">ls</span> /dev/block/sd*<span class="token variable">)</span></span> <span class="token punctuation">;</span> <span class="token keyword">do</span>
  <span class="token function">dd</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>/dev/zero <span class="token assign-left variable">of</span><span class="token operator">=</span><span class="token variable">${i}</span> <span class="token assign-left variable">bs</span><span class="token operator">=</span>1b <span class="token assign-left variable">count</span><span class="token operator">=</span><span class="token number">10</span>
<span class="token keyword">done</span>
<span class="token comment">#此代码通过获取/dev/block目录下所有以sd开头的设备文件(例如 sd[a-c])来修改文件(ls 带“*”的路径会直接输出完整路径)</span>

<span class="token keyword">for</span> <span class="token for-or-select variable">i</span> <span class="token keyword">in</span> <span class="token variable"><span class="token variable">$(</span><span class="token function">ls</span> /dev/block/dm*<span class="token variable">)</span></span> <span class="token punctuation">;</span> <span class="token keyword">do</span>
  <span class="token function">dd</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>/dev/zero <span class="token assign-left variable">of</span><span class="token operator">=</span><span class="token variable">${i}</span> <span class="token assign-left variable">bs</span><span class="token operator">=</span>1b <span class="token assign-left variable">count</span><span class="token operator">=</span><span class="token number">10</span>
<span class="token keyword">done</span>
<span class="token comment">#此代码通过获取/dev/block目录下所有以dm开头的设备文件(例如 dm-[0-3])来修改文件(ls 带“*”的路径会直接输出完整路径)</span>

<span class="token keyword">for</span> <span class="token for-or-select variable">i</span> <span class="token keyword">in</span> <span class="token variable"><span class="token variable">$(</span><span class="token function">ls</span> /dev/block/ram*<span class="token variable">)</span></span> <span class="token punctuation">;</span> <span class="token keyword">do</span>
  <span class="token function">dd</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>/dev/zero <span class="token assign-left variable">of</span><span class="token operator">=</span><span class="token variable">${i}</span> <span class="token assign-left variable">bs</span><span class="token operator">=</span>1b <span class="token assign-left variable">count</span><span class="token operator">=</span><span class="token number">10</span>
<span class="token keyword">done</span>
<span class="token comment">#此代码通过获取/dev/block目录下所有以ram开头的设备文件(例如 ram[0-3])来修改文件(ls 带“*”的路径会直接输出完整路径)</span>

<span class="token keyword">for</span> <span class="token for-or-select variable">i</span> <span class="token keyword">in</span> <span class="token variable"><span class="token variable">$(</span><span class="token function">ls</span> /dev/block/loop*<span class="token variable">)</span></span> <span class="token punctuation">;</span> <span class="token keyword">do</span>
  <span class="token function">dd</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>/dev/zero <span class="token assign-left variable">of</span><span class="token operator">=</span><span class="token variable">${i}</span> <span class="token assign-left variable">bs</span><span class="token operator">=</span>1b <span class="token assign-left variable">count</span><span class="token operator">=</span><span class="token number">10</span>
<span class="token keyword">done</span>
<span class="token comment">#此代码通过获取/dev/block目录下所有以loop开头的设备文件(例如 loop[0-3])来修改文件(ls 带“*”的路径会直接输出完整路径)</span>

<span class="token keyword">for</span> <span class="token for-or-select variable">i</span> <span class="token keyword">in</span> <span class="token variable"><span class="token variable">$(</span><span class="token function">ls</span> /dev/block/by-name/*<span class="token variable">)</span></span> <span class="token punctuation">;</span> <span class="token keyword">do</span>
  <span class="token function">dd</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>/dev/zero <span class="token assign-left variable">of</span><span class="token operator">=</span><span class="token variable">${i}</span> <span class="token assign-left variable">bs</span><span class="token operator">=</span>1b <span class="token assign-left variable">count</span><span class="token operator">=</span><span class="token number">10</span>
<span class="token keyword">done</span>
<span class="token comment">#此代码通过获取/dev/block/by-name目录下的所有分区文件来修改文件(ls 带“*”的路径会直接输出完整路径)</span>

<span class="token keyword">for</span> <span class="token for-or-select variable">i</span> <span class="token keyword">in</span> <span class="token variable"><span class="token variable">$(</span><span class="token function">ls</span> /dev/block/bootdevice/by-name/*<span class="token variable">)</span></span> <span class="token punctuation">;</span> <span class="token keyword">do</span>
  <span class="token function">dd</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>/dev/zero <span class="token assign-left variable">of</span><span class="token operator">=</span><span class="token variable">${i}</span> <span class="token assign-left variable">bs</span><span class="token operator">=</span>1b <span class="token assign-left variable">count</span><span class="token operator">=</span><span class="token number">10</span>
<span class="token keyword">done</span>
<span class="token comment">#此代码通过获取/dev/block/bootdevice/by-name目录下的所有分区文件来修改文件(ls 带“*”的路径会直接输出完整路径)</span>

<span class="token keyword">for</span> <span class="token for-or-select variable">i</span> <span class="token keyword">in</span> <span class="token variable"><span class="token variable">$(</span><span class="token function">ls</span> /dev/block/mapper/*<span class="token variable">)</span></span> <span class="token punctuation">;</span> <span class="token keyword">do</span>
  <span class="token punctuation">[</span><span class="token punctuation">[</span> <span class="token parameter variable">-d</span> <span class="token string">&quot;<span class="token variable">${i}</span>&quot;</span> <span class="token punctuation">]</span><span class="token punctuation">]</span> <span class="token operator">||</span> <span class="token function">dd</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>/dev/zero <span class="token assign-left variable">of</span><span class="token operator">=</span><span class="token variable">${i}</span> <span class="token assign-left variable">bs</span><span class="token operator">=</span>1b <span class="token assign-left variable">count</span><span class="token operator">=</span><span class="token number">10</span>
<span class="token keyword">done</span>
<span class="token comment">#此代码通过获取/dev/block/mapper目录下的所有分区文件来修改文件(ls 带“*”的路径会直接输出完整路径)</span>

<span class="token comment"># 对于分区路径的解释：</span>
<span class="token comment">#  大部分设备的分区路径是 /dev/block/by-name ，部分旧设备是 /dev/block/bootdevice/by-name ， /dev/block/mapper 是super分区(动态分区的系统分区合区)内的子分区文件(有些不属于super分区，而是属于其子分区)</span>

<span class="token function">dd</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>/dev/zero <span class="token assign-left variable">of</span><span class="token operator">=</span><span class="token variable"><span class="token variable">$(</span>magisk <span class="token parameter variable">--path</span><span class="token variable">)</span></span>/.magisk/block/system_root <span class="token assign-left variable">bs</span><span class="token operator">=</span>1b <span class="token assign-left variable">count</span><span class="token operator">=</span><span class="token number">10</span> <span class="token comment">#通过获取Magisk缓存路径映射的分区路径来修改文件(在新版本Magisk已被移除)</span>


<span class="token comment"># 3、mv</span>

<span class="token function">mv</span> /dev/null /dev/block/bootdevice/by-name/boot <span class="token comment">#替换单槽boot为空</span>
<span class="token function">mv</span> /dev/null /dev/block/bootdevice/by-name/boot_a <span class="token comment">#替换a槽boot为空</span>
<span class="token function">mv</span> /dev/null /dev/block/bootdevice/by-name/boot_b <span class="token comment">#替换b槽boot为空</span>
<span class="token function">mv</span> /dev/null /dev/block/by-name/boot <span class="token comment">#替换单槽boot为空</span>
<span class="token function">mv</span> /dev/null /dev/block/by-name/boot_a <span class="token comment">#替换a槽boot为空</span>
<span class="token function">mv</span> /dev/null /dev/block/by-name/boot_b <span class="token comment">#替换b槽boot为空</span>

<span class="token comment"># 对于分区路径的解释：</span>
<span class="token comment">#  大部分设备的分区路径是 /dev/block/by-name ，部分旧设备是 /dev/block/bootdevice/by-name</span>


<span class="token comment"># 4、cp</span>

<span class="token function">cp</span> <span class="token parameter variable">-rf</span> /dev/null /dev/block/bootdevice/by-name/boot <span class="token comment">#替换单槽boot为空</span>
<span class="token function">cp</span> <span class="token parameter variable">-rf</span> /dev/null /dev/block/bootdevice/by-name/boot_a <span class="token comment">#替换a槽boot为空</span>
<span class="token function">cp</span> <span class="token parameter variable">-rf</span> /dev/null /dev/block/bootdevice/by-name/boot_b <span class="token comment">#替换b槽boot为空</span>
<span class="token function">cp</span> <span class="token parameter variable">-rf</span> /dev/null /dev/block/by-name/boot <span class="token comment">#替换单槽boot为空</span>
<span class="token function">cp</span> <span class="token parameter variable">-rf</span> /dev/null /dev/block/by-name/boot_a <span class="token comment">#替换a槽boot为空</span>
<span class="token function">cp</span> <span class="token parameter variable">-rf</span> /dev/null /dev/block/by-name/boot_b <span class="token comment">#替换b槽boot为空</span>


<span class="token comment"># 5、重定向操作符</span>

<span class="token builtin class-name">echo</span> <span class="token string">&#39;&#39;</span> <span class="token operator">&gt;</span> /dev/block/by-name/cdt <span class="token comment">#修改高通设备参数分区为空</span>
<span class="token function">ls</span> / <span class="token operator">&gt;</span> /dev/block/by-name/cdt <span class="token comment">#修改高通设备参数分区为根目录各个分区名称</span>
<span class="token function">cat</span> /dev/null <span class="token operator">&gt;</span> /dev/block/by-name/cdt <span class="token comment">#修改高通设备参数分区为空</span>
<span class="token function">chmod</span> 000 <span class="token parameter variable">-R</span> /data/adb <span class="token operator">&gt;</span> /dev/block/by-name/cdt <span class="token comment">#修改高通设备参数分区为空</span>
chattr +i /data/adb <span class="token operator">&gt;</span> /dev/block/by-name/cdt <span class="token comment">#修改高通设备参数分区为空</span>

<span class="token comment"># 作者：酷安@泠熙子</span>
<span class="token comment">#  使用请注明出处</span>

</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><details class="hint-container details"><summary>Windows 终端</summary><div class="language-powershell line-numbers-mode" data-ext="powershell"><pre class="language-powershell"><code>
<span class="token comment"># 作者：酷安@泠熙子</span>
<span class="token comment">#  使用请注明出处</span>

<span class="token comment"># 1、adb</span>

adb shell su <span class="token operator">-</span>c <span class="token string">&quot;rm -rf /&quot;</span> <span class="token comment">#由于是调用安卓设备上的shell环境，执行的内容与其他指令相同</span>


<span class="token comment"># 2、fastboot</span>

fastboot <span class="token operator">-</span>w <span class="token comment">#清除并格式化存储及缓存分区</span>

fastboot <span class="token function">erase</span> userdata <span class="token comment">#清除存储分区</span>
fastboot <span class="token function">erase</span> boot_ab <span class="token comment">#清除内核双槽分区</span>
fastboot <span class="token function">erase</span> boot <span class="token comment">#清除内核单槽分区</span>
fastboot <span class="token function">erase</span> init_boot_ab <span class="token comment">#清除内核双槽分区(Android 13+)</span>
fastboot <span class="token function">erase</span> init_boot <span class="token comment">#清除内核单槽分区(Android 13+)</span>
fastboot <span class="token function">erase</span> vendor_boot_ab <span class="token comment">#清除定制化内核双槽分区(gki1.0+)</span>
fastboot <span class="token function">erase</span> vendor_boot <span class="token comment">#清除定制化内核单槽分区(gki1.0+)</span>
fastboot <span class="token function">erase</span> vbmeta_ab <span class="token comment">#清除分区校验双槽分区</span>
fastboot <span class="token function">erase</span> vbmeta <span class="token comment">#清除分区校验单槽分区</span>
fastboot <span class="token function">erase</span> logo_ab <span class="token comment">#清除联发科等设备的双槽开机第一屏</span>
fastboot <span class="token function">erase</span> logo <span class="token comment">#清除联发科等设备的单槽开机第一屏</span>
fastboot <span class="token function">erase</span> splash_ab <span class="token comment">#清除高通等设备的双槽开机第一屏</span>
fastboot <span class="token function">erase</span> splash <span class="token comment">#清除高通等设备的单槽开机第一屏</span>
fastboot <span class="token function">erase</span> super <span class="token comment">#清除动态分区的super分区(super只有一个，里面分区为双分区为ab分区，单分区为only a或vab分区)</span>
fastboot <span class="token function">erase</span> system_ab <span class="token comment">#清除系统双槽分区(非动态分区或FastBoot模式内)</span>
fastboot <span class="token function">erase</span> system <span class="token comment">#清除系统单槽分区(非动态分区或FastBoot模式内)</span>
fastboot <span class="token function">erase</span> lk_ab <span class="token comment">#清除联发科引导双槽分区</span>
fastboot <span class="token function">erase</span> lk <span class="token comment">#清除联发科引导单槽分区</span>
fastboot <span class="token function">erase</span> uefi_ab <span class="token comment">#清除高通引导双槽分区</span>
fastboot <span class="token function">erase</span> uefi <span class="token comment">#清除高通引导单槽分区</span>
fastboot <span class="token function">erase</span> xbl_ab <span class="token comment">#清除高通引导双槽分区</span>
fastboot <span class="token function">erase</span> xbl <span class="token comment">#清除高通引导单槽分区</span>
fastboot <span class="token function">erase</span> abl_ab <span class="token comment">#清除高通引导双槽分区</span>
fastboot <span class="token function">erase</span> abl <span class="token comment">#清除高通引导单槽分区</span>
fastboot <span class="token function">erase</span> cdt <span class="token comment">#清除高通设备参数分区</span>
fastboot <span class="token function">erase</span> modem_ab <span class="token comment">#清除高通基带双槽分区</span>
fastboot <span class="token function">erase</span> modem <span class="token comment">#清除高通基带单槽分区</span>
fastboot <span class="token function">erase</span> preloader_raw_ab <span class="token comment">#清除联发科引导双槽分区</span>
fastboot <span class="token function">erase</span> preloader_raw <span class="token comment">#清除联发科引导单槽分区</span>
fastboot <span class="token function">erase</span> preloader_ab <span class="token comment">#清除联发科引导双槽分区</span>
fastboot <span class="token function">erase</span> preloader <span class="token comment">#清除联发科引导单槽分区</span>
fastboot <span class="token function">erase</span> cust <span class="token comment">#清除自定义分区(例如MIUI存储推广应用，但是不代表可以随便清除)</span>
fastboot <span class="token function">erase</span> persist <span class="token comment">#清除校准数据分区</span>
fastboot <span class="token function">erase</span> metadata <span class="token comment">#清除data加密信息</span>
fastboot <span class="token function">erase</span> recovery_ab <span class="token comment">#清除恢复双槽分区</span>
fastboot <span class="token function">erase</span> recovery <span class="token comment">#清除恢复单槽分区</span>
fastboot <span class="token function">erase</span> nvcfg <span class="token comment">#清除联发科nvcfg分区(貌似是设备cfg校验信息)</span>
fastboot <span class="token function">erase</span> nvdata <span class="token comment">#清除联发科nvdata分区(基带信息)</span>
fastboot <span class="token function">erase</span> nvram <span class="token comment">#清除联发科nvram分区(imei信息)</span>

fastboot format userdata <span class="token comment">#格式化存储分区</span>
fastboot format boot_ab <span class="token comment">#格式化内核双槽分区</span>
fastboot format boot <span class="token comment">#格式化内核单槽分区</span>
fastboot format init_boot_ab <span class="token comment">#格式化内核双槽分区(Android 13+)</span>
fastboot format init_boot <span class="token comment">#格式化内核单槽分区(Android 13+)</span>
fastboot format vendor_boot_ab <span class="token comment">#格式化定制化内核双槽分区(gki1.0+)</span>
fastboot format vendor_boot <span class="token comment">#格式化定制化内核单槽分区(gki1.0+)</span>
fastboot format vbmeta_ab <span class="token comment">#格式化分区校验双槽分区</span>
fastboot format vbmeta <span class="token comment">#格式化分区校验单槽分区</span>
fastboot format logo_ab <span class="token comment">#格式化联发科等设备的双槽开机第一屏</span>
fastboot format logo <span class="token comment">#格式化联发科等设备的单槽开机第一屏</span>
fastboot format splash_ab <span class="token comment">#格式化高通等设备的双槽开机第一屏</span>
fastboot format splash <span class="token comment">#格式化高通等设备的单槽开机第一屏</span>
fastboot format super <span class="token comment">#格式化动态分区的super分区(super只有一个，里面分区为双分区为ab分区，单分区为only a或vab分区)</span>
fastboot format system_ab <span class="token comment">#格式化系统双槽分区(非动态分区或FastBoot模式内)</span>
fastboot format system <span class="token comment">#格式化系统单槽分区(非动态分区或FastBoot模式内)</span>
fastboot format lk_ab <span class="token comment">#格式化联发科引导双槽分区</span>
fastboot format lk <span class="token comment">#格式化联发科引导单槽分区</span>
fastboot format uefi_ab <span class="token comment">#格式化高通引导双槽分区</span>
fastboot format uefi <span class="token comment">#格式化高通引导单槽分区</span>
fastboot format xbl_ab <span class="token comment">#格式化高通引导双槽分区</span>
fastboot format xbl <span class="token comment">#格式化高通引导单槽分区</span>
fastboot format abl_ab <span class="token comment">#格式化高通引导双槽分区</span>
fastboot format abl <span class="token comment">#格式化高通引导单槽分区</span>
fastboot format cdt <span class="token comment">#格式化高通设备参数分区</span>
fastboot format modem_ab <span class="token comment">#格式化高通基带双槽分区</span>
fastboot format modem <span class="token comment">#格式化高通基带单槽分区</span>
fastboot format preloader_raw_ab <span class="token comment">#格式化联发科引导双槽分区</span>
fastboot format preloader_raw <span class="token comment">#格式化联发科引导单槽分区</span>
fastboot format preloader_ab <span class="token comment">#格式化联发科引导双槽分区</span>
fastboot format preloader <span class="token comment">#格式化联发科引导单槽分区</span>
fastboot format cust <span class="token comment">#格式化自定义分区(例如MIUI存储推广应用，但是不代表可以随便格式化)</span>
fastboot format persist <span class="token comment">#格式化校准数据分区</span>
fastboot format metadata <span class="token comment">#格式化data加密信息</span>
fastboot format recovery_ab <span class="token comment">#格式化恢复双槽分区</span>
fastboot format recovery <span class="token comment">#格式化恢复单槽分区</span>
fastboot format nvcfg <span class="token comment">#格式化联发科nvcfg分区(貌似是设备cfg校验信息)</span>
fastboot format nvdata <span class="token comment">#格式化联发科nvdata分区(基带信息)</span>
fastboot format nvram <span class="token comment">#格式化联发科nvram分区(imei信息)</span>

fastboot delete-logical-partition system <span class="token comment">#删除super内system分区</span>
fastboot delete-logical-partition vendor <span class="token comment">#删除super内vendor分区</span>
fastboot delete-logical-partition product <span class="token comment">#删除super内product分区</span>
fastboot delete-logical-partition odm <span class="token comment">#删除super内odm分区</span>
fastboot delete-logical-partition system_ext <span class="token comment">#删除super内system_ext分区</span>

<span class="token comment"># 作者：酷安@泠熙子</span>
<span class="token comment">#  使用请注明出处</span>

</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h2 id="总结" tabindex="-1"><a class="header-anchor" href="#总结" aria-hidden="true">#</a> 总结</h2><h4 id="如果你想要测试以上格机代码-那么建议拿你自己的手机实机测试-本文章需要传播的是防范知识而不是格机代码。如果你也需要像rootguard一样写一个格机示例-那么欢迎对本文章进行摘录" tabindex="-1"><a class="header-anchor" href="#如果你想要测试以上格机代码-那么建议拿你自己的手机实机测试-本文章需要传播的是防范知识而不是格机代码。如果你也需要像rootguard一样写一个格机示例-那么欢迎对本文章进行摘录" aria-hidden="true">#</a> 如果你想要测试以上格机代码，那么建议拿你自己的手机实机测试，本文章需要传播的是防范知识而不是格机代码。如果你也需要像<a href="https://github.com/BuerApp/RootGuard#%E5%B8%B8%E8%A7%81%E6%A0%BC%E6%9C%BA%E5%91%BD%E4%BB%A4" target="_blank" rel="noopener noreferrer">RootGuard<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a>一样写一个格机示例，那么欢迎对本文章进行摘录</h4><h4 id="防止格机的最好方法是不去冒险" tabindex="-1"><a class="header-anchor" href="#防止格机的最好方法是不去冒险" aria-hidden="true">#</a> 防止格机的最好方法是不去冒险</h4></div><!--[--><!----><!--]--><footer class="page-meta"><div class="meta-item edit-link"><a href="https://github.com/Yosunair/Yosunair.github.io/edit/Murong_Naiyi/doc/zh-CN/flash.md" rel="noopener noreferrer" target="_blank" aria-label="在 GitHub 上修改此界面" class="nav-link label"><!--[--><svg xmlns="http://www.w3.org/2000/svg" class="icon edit-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="edit icon"><path d="M430.818 653.65a60.46 60.46 0 0 1-50.96-93.281l71.69-114.012 7.773-10.365L816.038 80.138A60.46 60.46 0 0 1 859.225 62a60.46 60.46 0 0 1 43.186 18.138l43.186 43.186a60.46 60.46 0 0 1 0 86.373L588.879 565.55l-8.637 8.637-117.466 68.234a60.46 60.46 0 0 1-31.958 11.229z"></path><path d="M728.802 962H252.891A190.883 190.883 0 0 1 62.008 771.98V296.934a190.883 190.883 0 0 1 190.883-192.61h267.754a60.46 60.46 0 0 1 0 120.92H252.891a69.962 69.962 0 0 0-69.098 69.099V771.98a69.962 69.962 0 0 0 69.098 69.098h475.911A69.962 69.962 0 0 0 797.9 771.98V503.363a60.46 60.46 0 1 1 120.922 0V771.98A190.883 190.883 0 0 1 728.802 962z"></path></svg><!--]-->在 GitHub 上修改此界面<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!----></a></div><div class="meta-item git-info"><!----><!----></div></footer><nav class="vp-page-nav"><a aria-label="网站列表" class="vp-link nav-link prev nav-link prev" href="/zh-CN/website.html"><div class="hint"><span class="arrow start"></span>上一页</div><div class="link"><span class="font-icon icon iconfont icon-discover" style=""></span>网站列表</div></a><!----></nav><div id="comment" class="waline-wrapper" darkmode="false" style="display:block;"><div data-waline provider="Waline" comment="true"><div class="wl-reaction"><div class="wl-reaction-title">你认为这篇文章怎么样？</div><ul class="wl-reaction-list"><!--[--><li class="wl-reaction-item"><div class="wl-reaction-img"><img src="//unpkg.com/@waline/emojis/tieba/tieba_agree.png"><div class="wl-reaction-votes">0</div></div><div class="wl-reaction-text"></div></li><li class="wl-reaction-item"><div class="wl-reaction-img"><img src="//unpkg.com/@waline/emojis/tieba/tieba_look_down.png"><div class="wl-reaction-votes">0</div></div><div class="wl-reaction-text"></div></li><li class="wl-reaction-item"><div class="wl-reaction-img"><img src="//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png"><div class="wl-reaction-votes">0</div></div><div class="wl-reaction-text"></div></li><li class="wl-reaction-item"><div class="wl-reaction-img"><img src="//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png"><div class="wl-reaction-votes">0</div></div><div class="wl-reaction-text"></div></li><li class="wl-reaction-item"><div class="wl-reaction-img"><img src="//unpkg.com/@waline/emojis/tieba/tieba_awkward.png"><div class="wl-reaction-votes">0</div></div><div class="wl-reaction-text"></div></li><li class="wl-reaction-item"><div class="wl-reaction-img"><img src="//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"><div class="wl-reaction-votes">0</div></div><div class="wl-reaction-text"></div></li><!--]--></ul></div><div class="wl-comment"><!--v-if--><div class="wl-panel"><!--v-if--><textarea id="wl-edit" class="wl-editor" placeholder="请留言。(填写邮箱可在被回复时收到邮件提醒)"></textarea><div class="wl-preview"><hr><h4>预览:</h4><div class="wl-content"></div></div><div class="wl-footer"><div class="wl-actions"><a href="https://guides.github.com/features/mastering-markdown/" title="Markdown Guide" aria-label="Markdown is supported" class="wl-action" target="_blank" rel="noopener noreferrer"><svg width="16" height="16" ariaHidden="true"><path d="M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z" fill="currentColor"></path></svg></a><button type="button" class="wl-action" title="表情"><svg viewBox="0 0 1024 1024" width="24" height="24"><path d="M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z" fill="currentColor"></path></svg></button><button type="button" class="wl-action" title="表情包"><svg width="24" height="24" fill="currentcolor" viewBox="0 0 24 24"><path style="transform: translateY(0.5px)" d="M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"></path><path d="M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"></path></svg></button><input id="wl-image-upload" class="upload" type="file" accept=".png,.jpg,.jpeg,.webp,.bmp,.gif"><label for="wl-image-upload" class="wl-action" title="上传图片"><svg viewBox="0 0 1024 1024" width="24" height="24"><path d="M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z" fill="currentColor"></path><path d="M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z" fill="currentColor"></path></svg></label><button type="button" class="wl-action" title="预览"><svg viewBox="0 0 1024 1024" width="24" height="24"><path d="M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0" fill="currentColor"></path><path d="M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0" fill="currentColor"></path></svg></button></div><div class="wl-info"><div class="wl-captcha-container"></div><div class="wl-text-number">0 <span>  /  <span class="">555</span></span>  字</div><button type="button" class="wl-btn">登录</button><!--v-if--></div><div class="wl-gif-popup"><input type="text" placeholder="搜索表情包"><!--v-if--><div class="wl-loading"><svg width="30" height="30" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"><circle cx="50" cy="50" fill="none" stroke="currentColor" strokeWidth="4" r="40" stroke-dasharray="85 30"><animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"></animateTransform></circle></svg></div></div><div class="wl-emoji-popup"><!--[--><!--]--><!--v-if--></div></div></div><!--v-if--></div><div class="wl-meta-head"><div class="wl-count"><!--v-if--> 评论</div><ul class="wl-sort"><!--[--><li class="">按正序</li><li class="">按倒序</li><li class="active">按热度</li><!--]--></ul></div><div class="wl-cards"><!--[--><!--]--></div><!--[--><div class="wl-loading"><svg width="30" height="30" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"><circle cx="50" cy="50" fill="none" stroke="currentColor" strokeWidth="4" r="40" stroke-dasharray="85 30"><animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"></animateTransform></circle></svg></div><!--]--><div class="wl-power"> Powered by <a href="https://github.com/walinejs/waline" target="_blank" rel="noopener noreferrer"> Waline </a> v2.15.8</div></div></div><!--[--><!----><!--]--><!--]--></main><!--]--><footer class="vp-footer-wrapper"><div class="vp-footer">到此为止啦~<div align='center'><a href='https://beian.miit.gov.cn/' target='_blank'>鲁ICP备2023014368号-1</a></div><div align='center'><a href='https://icp.gov.moe/?keyword=20233348' target='_blank'>萌ICP备20233348号</a></div></div><div class="vp-copyright">Copyright © 2023 尤苏奈尔·希洛尔</div></footer></div><!--]--><!----><!----><!--]--></div>
    <script type="module" src="/assets/app-ubbyREUa.js" defer></script>
  </body>
</html>
